Writable secrets that can be consumed

This commit is contained in:
2025-11-05 21:41:39 +01:00
parent 2271827ec5
commit a8a01b81b5
4 changed files with 77 additions and 4 deletions

View File

@@ -15,6 +15,22 @@ spec:
spec:
imagePullSecrets:
- name: ghcr-secret
initContainers:
- name: copy-secrets
image: busybox
command:
- sh
- -c
- |
for f in /secrets/*; do
cp "$f" /etc/secrets/
chmod 666 "/etc/secrets/$(basename $f)"
done
volumeMounts:
- name: backend-api-internal-secrets
mountPath: /secrets
- name: writable-secrets
mountPath: /etc/secrets
containers:
- name: backend-api-internal
image: ghcr.io/gansejunge/app-notifications-backend-api-internal:11
@@ -28,10 +44,13 @@ spec:
- name: LOG_LEVEL
value: "INFO"
volumeMounts:
- name: backend-api-internal-secrets
- name: writable-secrets
mountPath: /etc/secrets
readOnly: true
volumes:
- name: backend-api-internal-secrets
secret:
secretName: backend-api-internal
- name: writable-secrets
emptyDir: {}