Use PVC for Traefik ACME data
This commit is contained in:
parent
8dd4b72fc7
commit
5448cfc93b
|
@ -13,6 +13,7 @@ networking:
|
||||||
|
|
||||||
contact:
|
contact:
|
||||||
letsEncryptEmail: ops@example.com # FIXME
|
letsEncryptEmail: ops@example.com # FIXME
|
||||||
|
letsEncryptProductionEnabled: false
|
||||||
|
|
||||||
metallb:
|
metallb:
|
||||||
secretkey: "$(pwgen -s 256 1)"
|
secretkey: "$(pwgen -s 256 1)"
|
||||||
|
|
|
@ -119,6 +119,3 @@ spec:
|
||||||
- name: http
|
- name: http
|
||||||
port: 80
|
port: 80
|
||||||
targetPort: 6119
|
targetPort: 6119
|
||||||
|
|
||||||
---
|
|
||||||
kind: Ingress
|
|
||||||
|
|
|
@ -15,19 +15,27 @@ data:
|
||||||
tls: true
|
tls: true
|
||||||
healthcheck:
|
healthcheck:
|
||||||
address: ":9000/tcp"
|
address: ":9000/tcp"
|
||||||
|
metrics:
|
||||||
|
address: ":9100/tcp"
|
||||||
docker:
|
docker:
|
||||||
address: ":31000/tcp"
|
address: ":31000/tcp"
|
||||||
http:
|
http:
|
||||||
tls: true
|
tls: true
|
||||||
ping:
|
ping:
|
||||||
entryPoint: "healthcheck"
|
entryPoint: "healthcheck"
|
||||||
|
metrics:
|
||||||
|
prometheus:
|
||||||
|
entryPoint: "metrics"
|
||||||
providers:
|
providers:
|
||||||
kubernetescrd: true
|
kubernetescrd: true
|
||||||
kubernetesingress: true
|
kubernetesingress: true
|
||||||
certificatesResolvers:
|
certificatesResolvers:
|
||||||
riju:
|
riju:
|
||||||
acme:
|
acme:
|
||||||
|
{{- if not .contact.letsEncryptProductionEnabled }}
|
||||||
|
caServer: https://acme-staging-v02.api.letsencrypt.org/directory
|
||||||
|
{{- end }}
|
||||||
email: "{{ .contact.letsEncryptEmail }}"
|
email: "{{ .contact.letsEncryptEmail }}"
|
||||||
storage: acme.json
|
storage: /data/acme.json
|
||||||
httpChallenge:
|
httpChallenge:
|
||||||
entryPoint: http
|
entryPoint: http
|
||||||
|
|
|
@ -1,8 +1,21 @@
|
||||||
# Based on traefik/traefik helm chart 20.8.0 for traefik v2.9.6
|
# Based on traefik/traefik helm chart 20.8.0 for traefik v2.9.6
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
namespace: traefik
|
||||||
|
name: traefik-data
|
||||||
|
spec:
|
||||||
|
accessModes: [ReadWriteOnce]
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 128Mi
|
||||||
|
storageClassName: openebs-hostpath
|
||||||
|
|
||||||
|
---
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
apiVersion: apps/v1
|
||||||
metadata:
|
metadata:
|
||||||
namespace: traefik
|
namespace: traefik
|
||||||
name: traefik
|
name: traefik
|
||||||
|
@ -83,7 +96,8 @@ spec:
|
||||||
configMap:
|
configMap:
|
||||||
name: traefik-config
|
name: traefik-config
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
persistentVolumeClaim:
|
||||||
|
claimName: traefik-data
|
||||||
- name: tmp
|
- name: tmp
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|
Loading…
Reference in New Issue