Mercurial > code > home > repos > homeauto
diff service/wifi/deploy.yaml @ 1728:81aa0873b48d
port to skaffold, starlette, etc
author | drewp@bigasterisk.com |
---|---|
date | Fri, 30 Jun 2023 22:03:55 -0700 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/wifi/deploy.yaml Fri Jun 30 22:03:55 2023 -0700 @@ -0,0 +1,44 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: wifi +spec: + replicas: 1 + selector: + matchLabels: + app: wifi + template: + metadata: + labels: + app: wifi + spec: + containers: + - name: wifi + image: bang5:5000/wifi_image + command: + - pdm + - run + - uvicorn + - "--port=9070" + - "--host=0.0.0.0" + - "wifi:app" + ports: + - containerPort: 9070 + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: "kubernetes.io/hostname" + operator: In + values: ["bang"] +--- +apiVersion: v1 +kind: Service +metadata: + name: wifi +spec: + ports: + - { port: 80, targetPort: 9070, name: http } + selector: + app: wifi