Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.