Writable secrets that can be consumed
This commit is contained in:
parent
8fa0489d22
commit
2271827ec5
@ -15,6 +15,22 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: ghcr-secret
|
- 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-secrets
|
||||||
|
mountPath: /secrets
|
||||||
|
- name: writable-secrets
|
||||||
|
mountPath: /etc/secrets
|
||||||
containers:
|
containers:
|
||||||
- name: backend-api
|
- name: backend-api
|
||||||
image: ghcr.io/gansejunge/app-notifications-backend-api:24
|
image: ghcr.io/gansejunge/app-notifications-backend-api:24
|
||||||
@ -26,10 +42,11 @@ spec:
|
|||||||
- name: LOG_LEVEL
|
- name: LOG_LEVEL
|
||||||
value: "INFO"
|
value: "INFO"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: backend-api-secrets
|
- name: writable-secrets
|
||||||
mountPath: /etc/secrets
|
mountPath: /etc/secrets
|
||||||
readOnly: true
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: backend-api-secrets
|
- name: backend-api-secrets
|
||||||
secret:
|
secret:
|
||||||
secretName: backend-api
|
secretName: backend-api
|
||||||
|
- name: writable-secrets
|
||||||
|
emptyDir: {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user