Mercurial > code > home > repos > sco-bot
diff k8s/deploy.yaml @ 8:f23b21bd0fce
apex search
author | drewp@bigasterisk.com |
---|---|
date | Sun, 07 Jul 2024 16:26:56 -0700 |
parents | 53ae53f7d1b3 |
children | 6622bacb0b84 |
line wrap: on
line diff
--- a/k8s/deploy.yaml Sat Jul 06 16:45:19 2024 -0700 +++ b/k8s/deploy.yaml Sun Jul 07 16:26:56 2024 -0700 @@ -12,6 +12,10 @@ labels: app: sco-bot spec: + volumes: + - name: sco-bot-data + persistentVolumeClaim: + claimName: sco-bot-data containers: - name: vite image: reg:5000/sco_bot_web @@ -36,4 +40,15 @@ - "8001" - search/query.py ports: - - containerPort: 8001 \ No newline at end of file + - containerPort: 8001 + volumeMounts: + - name: sco-bot-data + mountPath: /opt/data + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: "kubernetes.io/hostname" + operator: In + values: ["ditto", "dash"] # need /my/serv \ No newline at end of file