Created
October 10, 2019 20:13
-
-
Save gweinhold/69734a98b1542cda63dcd99dfe2d6604 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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