Skip to content

Instantly share code, notes, and snippets.

@sebug
Created August 3, 2017 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebug/f478f1cfd0a793e8d556c6001bbbe142 to your computer and use it in GitHub Desktop.
Save sebug/f478f1cfd0a793e8d556c6001bbbe142 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: sampleback
spec:
replicas: 1
template:
metadata:
labels:
app: sampleback
spec:
containers:
- name: sampleback
image: microsoft/iis
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
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