Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Traefik ConfgMap on DigitalOcean k8s
apiVersion: v1
kind: ConfigMap
metadata:
name: traefik-conf
namespace: kube-system
labels:
k8s-app: traefik-ingress-controller
data:
traefik.toml: |
debug = true
logLevel = "INFO"
defaultEntryPoints = ["http", "https"]
# Do not verify backend certificates (use https backend)
insecureSkipVerify = true
sendAnonymousUsage = true
[traefikLog]
# [accessLog]
# filePath = "/var/run/traefik-access.log"
[entryPoints]
[entryPoints.http]
address = ":80"
compress = true
#[entryPoints.http.redirect]
# entryPoint = "https"
[entryPoints.http.proxyProtocol]
trustedIPs = ["159.203.xx.xxx"]
[entryPoints.https]
address = ":443"
# [entryPoints.https.tls]
[entryPoints.https.proxyProtocol]
trustedIPs = ["159.203.xx.xxx"]
[kubernetes]
[api]
[ping]
entryPoint = "http"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment