Skip to content

Instantly share code, notes, and snippets.

@BenHall
Created July 3, 2017 17:37
Show Gist options
  • Save BenHall/c664732533b01cda23c04b20bc6420f7 to your computer and use it in GitHub Desktop.
Save BenHall/c664732533b01cda23c04b20bc6420f7 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
labels:
name: iis
name: iis
namespace: default
spec:
containers:
- image: microsoft/iis
imagePullPolicy: Always
name: iis
ports:
- containerPort: 80
nodeSelector:
beta.kubernetes.io/os: windows
---
apiVersion: v1
kind: Service
metadata:
labels:
name: iis
name: iis
spec:
ports:
- port: 80
targetPort: 80
nodePort: 30080
selector:
name: iis
type: NodePort
apiVersion: v1
kind: Pod
metadata:
labels:
name: nerddinner
name: nerddinner
namespace: default
spec:
containers:
- image: benhall/nerddinner:v2.0
imagePullPolicy: Always
name: nerddinner
ports:
- containerPort: 80
nodeSelector:
beta.kubernetes.io/os: windows
---
apiVersion: v1
kind: Service
metadata:
labels:
name: nerddinner
name: nerddinner
spec:
ports:
- port: 80
targetPort: 80
nodePort: 30081
selector:
name: nerddinner
type: NodePort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment