[bugfix] certificates lost after system reboot
This commit is contained in:
parent
534225c135
commit
527f52b179
|
@ -44,9 +44,9 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: traefik-ingress-controller
|
serviceAccountName: traefik-ingress-controller
|
||||||
containers:
|
containers:
|
||||||
- name: traefik
|
- name: traefik
|
||||||
image: traefik:v2.3.6
|
image: traefik:v2.3.6
|
||||||
args:
|
args:
|
||||||
- --api.insecure
|
- --api.insecure
|
||||||
- --accesslog
|
- --accesslog
|
||||||
- --entrypoints.web.Address=:80
|
- --entrypoints.web.Address=:80
|
||||||
|
@ -54,11 +54,19 @@ spec:
|
||||||
- --providers.kubernetescrd
|
- --providers.kubernetescrd
|
||||||
- --certificatesresolvers.myresolver.acme.tlschallenge
|
- --certificatesresolvers.myresolver.acme.tlschallenge
|
||||||
- --certificatesresolvers.myresolver.acme.email=EMAIL
|
- --certificatesresolvers.myresolver.acme.email=EMAIL
|
||||||
- --certificatesresolvers.myresolver.acme.storage=acme.json
|
- --certificatesresolvers.myresolver.acme.storage=/data/acme.json
|
||||||
ports:
|
ports:
|
||||||
- name: web
|
- name: web
|
||||||
containerPort: 80
|
containerPort: 80
|
||||||
- name: websecure
|
- name: websecure
|
||||||
containerPort: 443
|
containerPort: 443
|
||||||
- name: admin
|
- name: admin
|
||||||
containerPort: 8080
|
containerPort: 8080
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /data
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
hostPath:
|
||||||
|
path: /data/traefik
|
||||||
|
type: DirectoryOrCreate
|
||||||
|
|
Loading…
Reference in New Issue
Block a user