fix(k3s): restore missing env vars and correct secret key casing in deployment.yaml

This commit is contained in:
stevef 2026-04-19 14:54:33 +02:00
parent 3f19133db2
commit 43ed4c9dbb

View file

@ -14,7 +14,6 @@ spec:
app: picoclaw-agent app: picoclaw-agent
spec: spec:
# Init container to bootstrap the configuration from the ConfigMap into the Persistent Volume # Init container to bootstrap the configuration from the ConfigMap into the Persistent Volume
# This answers "how will I copy the config file": the config is copied into the volume on the first run.
initContainers: initContainers:
- name: init-config - name: init-config
image: busybox:latest image: busybox:latest
@ -47,11 +46,6 @@ spec:
value: /home/picoclaw/.picoclaw value: /home/picoclaw/.picoclaw
- name: PICOCLAW_GATEWAY_HOST - name: PICOCLAW_GATEWAY_HOST
value: "0.0.0.0" value: "0.0.0.0"
- name: PICOCLAW_GOOGLE_API_KEY
valueFrom:
secretKeyRef:
name: picoclaw-secrets
key: GOOGLE_API_KEY
- name: PICOCLAW_TELEGRAM_TOKEN - name: PICOCLAW_TELEGRAM_TOKEN
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
@ -61,7 +55,17 @@ spec:
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: picoclaw-secrets name: picoclaw-secrets
key: openrouter-api-key key: OPENROUTER_API_KEY
- name: NVIDIA_API_KEY
valueFrom:
secretKeyRef:
name: picoclaw-secrets
key: nvidia-api-key
- name: AZURE_API_KEY
valueFrom:
secretKeyRef:
name: picoclaw-secrets
key: azure-api-key
volumeMounts: volumeMounts:
- name: picoclaw-data - name: picoclaw-data
mountPath: /home/picoclaw/.picoclaw mountPath: /home/picoclaw/.picoclaw
@ -78,3 +82,4 @@ spec:
- name: picoclaw-secrets - name: picoclaw-secrets
secret: secret:
secretName: picoclaw-secrets secretName: picoclaw-secrets
restartPolicy: Always