Created
August 7, 2017 20:48
-
-
Save sebug/0f7776668fff4e0e6b3f3d313846afa6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: sampleback | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: sampleback | |
spec: | |
containers: | |
- name: sampleback | |
image: microsoft/iis:windowsservercore-10.0.14393.1480 | |
ports: | |
- containerPort: 80 | |
nodeSelector: | |
beta.kubernetes.io/os: windows | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: sample-back | |
spec: | |
ports: | |
- port: 80 | |
selector: | |
app: sampleback | |
--- | |
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: samplefront | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: samplefront | |
spec: | |
containers: | |
- name: samplefront | |
image: microsoft/iis:windowsservercore-10.0.14393.1480 | |
nodeSelector: | |
beta.kubernetes.io/os: windows | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: sample-front | |
spec: | |
type: LoadBalancer | |
ports: | |
- port: 80 | |
selector: | |
app: samplefront |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment