Mercurial > code > home > repos > homeauto
comparison 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 |
comparison
equal
deleted
inserted
replaced
1727:23e6154e6c11 | 1728:81aa0873b48d |
---|---|
1 apiVersion: apps/v1 | |
2 kind: Deployment | |
3 metadata: | |
4 name: wifi | |
5 spec: | |
6 replicas: 1 | |
7 selector: | |
8 matchLabels: | |
9 app: wifi | |
10 template: | |
11 metadata: | |
12 labels: | |
13 app: wifi | |
14 spec: | |
15 containers: | |
16 - name: wifi | |
17 image: bang5:5000/wifi_image | |
18 command: | |
19 - pdm | |
20 - run | |
21 - uvicorn | |
22 - "--port=9070" | |
23 - "--host=0.0.0.0" | |
24 - "wifi:app" | |
25 ports: | |
26 - containerPort: 9070 | |
27 affinity: | |
28 nodeAffinity: | |
29 requiredDuringSchedulingIgnoredDuringExecution: | |
30 nodeSelectorTerms: | |
31 - matchExpressions: | |
32 - key: "kubernetes.io/hostname" | |
33 operator: In | |
34 values: ["bang"] | |
35 --- | |
36 apiVersion: v1 | |
37 kind: Service | |
38 metadata: | |
39 name: wifi | |
40 spec: | |
41 ports: | |
42 - { port: 80, targetPort: 9070, name: http } | |
43 selector: | |
44 app: wifi |