Skip to content

Instantly share code, notes, and snippets.

@gweinhold
Created October 10, 2019 20:13
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 gweinhold/69734a98b1542cda63dcd99dfe2d6604 to your computer and use it in GitHub Desktop.
Save gweinhold/69734a98b1542cda63dcd99dfe2d6604 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: windows-server-iis
spec:
selector:
matchLabels:
app: windows-server-iis
tier: backend
track: stable
replicas: 1
template:
metadata:
labels:
app: windows-server-iis
tier: backend
track: stable
spec:
containers:
- name: windows-server-iis
image: <URI to ECR IMAGE> # Example: 123456789012.dkr.ecr.us-east-2.amazonaws.com/<repository>:<tag>
ports:
- name: http
containerPort: 80
imagePullPolicy: IfNotPresent
nodeSelector:
beta.kubernetes.io/os: windows
---
apiVersion: v1
kind: Service
metadata:
name: windows-server-iis-service
namespace: default
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: windows-server-iis
tier: backend
track: stable
sessionAffinity: None
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment