Skip to content

Instantly share code, notes, and snippets.

@sebug
Created August 7, 2017 20:48
Show Gist options
  • Save sebug/0f7776668fff4e0e6b3f3d313846afa6 to your computer and use it in GitHub Desktop.
Save sebug/0f7776668fff4e0e6b3f3d313846afa6 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: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