Mercurial > code > home > repos > gcalendarwatch
diff deploy.yaml @ 15:72ebd60d640e
containerization updates
author | drewp@bigasterisk.com |
---|---|
date | Sun, 13 Sep 2020 14:35:37 -0700 |
parents | |
children | c1eac229b355 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deploy.yaml Sun Sep 13 14:35:37 2020 -0700 @@ -0,0 +1,39 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: gcalendarwatch +spec: + replicas: 1 + selector: + matchLabels: + app: gcalendarwatch + template: + metadata: + labels: + app: gcalendarwatch + spec: + containers: + - name: gcalendarwatch + image: bang5:5000/gcalendarwatch_image + ports: + - containerPort: 9105 + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: "kubernetes.io/hostname" + operator: In + values: ["bang"] +--- +apiVersion: v1 +kind: Service +metadata: + name: gcalendarwatch +spec: + ports: + - {port: 80, targetPort: 9105, name: metrics} + selector: + app: gcalendarwatch + +