Mercurial > code > home > repos > homeauto
diff service/frontDoorLock/deploy.yaml @ 1712:6ee9a1c5a991
update deps; code fixes; add skaffold
author | drewp@bigasterisk.com |
---|---|
date | Sun, 12 Dec 2021 22:03:28 -0800 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/frontDoorLock/deploy.yaml Sun Dec 12 22:03:28 2021 -0800 @@ -0,0 +1,40 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: front-door-lock +spec: + replicas: 1 + selector: + matchLabels: + app: front-door-lock + template: + metadata: + labels: + app: front-door-lock + annotations: + prometheus.io/scrape: "false" + spec: + containers: + - name: front-door-lock + image: bang5:5000/front_door_lock_image + imagePullPolicy: "Always" + ports: + - containerPort: 10011 + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: "kubernetes.io/hostname" + operator: In + values: ["bang"] +--- +apiVersion: v1 +kind: Service +metadata: + name: front-door-lock +spec: + ports: + - {port: 10011, targetPort: 10011} + selector: + app: front-door-lock