riju/k8s/traefik-config.in.yaml

42 lines
942 B
YAML

---
kind: ConfigMap
apiVersion: v1
metadata:
namespace: traefik
name: traefik-config
data:
traefik.yaml: |
entrypoints:
http:
address: ":8000/tcp"
https:
address: ":8443/tcp"
http:
tls: true
healthcheck:
address: ":9000/tcp"
metrics:
address: ":9100/tcp"
docker:
address: ":31000/tcp"
http:
tls: true
ping:
entryPoint: "healthcheck"
metrics:
prometheus:
entryPoint: "metrics"
providers:
kubernetescrd: true
kubernetesingress: true
certificatesResolvers:
riju:
acme:
{{- if not .contact.letsEncryptProductionEnabled }}
caServer: https://acme-staging-v02.api.letsencrypt.org/directory
{{- end }}
email: "{{ .contact.letsEncryptEmail }}"
storage: /data/acme.json
httpChallenge:
entryPoint: http