[bugfix] certificates lost after system reboot

This commit is contained in:
Klesh Wong 2021-01-17 11:22:04 +08:00
parent 534225c135
commit 527f52b179

View File

@ -54,7 +54,7 @@ spec:
- --providers.kubernetescrd
- --certificatesresolvers.myresolver.acme.tlschallenge
- --certificatesresolvers.myresolver.acme.email=EMAIL
- --certificatesresolvers.myresolver.acme.storage=acme.json
- --certificatesresolvers.myresolver.acme.storage=/data/acme.json
ports:
- name: web
containerPort: 80
@ -62,3 +62,11 @@ spec:
containerPort: 443
- name: admin
containerPort: 8080
volumeMounts:
- name: data
mountPath: /data
volumes:
- name: data
hostPath:
path: /data/traefik
type: DirectoryOrCreate