Hi,
I'm trying to implement ssl certs on persistent volume in Traefik (it is intalled in the traefik namespace).
Added the persitence, ge the following error:
"unable to get ACME account: open /ssl-certs/acme-cloudflare.json: permission denied"
I try to enable an initContainer for managing the certs permisisons, but it keeps staying in the "Back-off restarting failed container"
Pertinent values.yaml parts:
deployment:
additionalContainers: []
additionalVolumes: []
annotations: {}
enabled: true
imagePullSecrets: []
initContainers:
- name: volume-permissions
image: busybox:1.31.1
command: ["sh", "-c", "chmod -Rv 600 /ssl-certs/*"]
volumeMounts:
- name: ssl-certs
mountPath: /ssl-certs
kind: Deployment
labels: {}
minReadySeconds: 0
podAnnotations: {}
podLabels: {}
replicas: 1
shareProcessNamespace: true
terminationGracePeriodSeconds: 60
persistence:
accessMode: ReadWriteMany
annotations: {}
enabled: true
name: ssl-certs
path: /ssl-certs
size: 128Mi
existingClaim: traefik-ssl-claim
How can I properly set the initContainer to run?
Thanks,
Nicola