Skip to content

Instantly share code, notes, and snippets.

@jleach
Created June 11, 2019 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jleach/67bbdde576a0c61b5d262944da24cd27 to your computer and use it in GitHub Desktop.
Save jleach/67bbdde576a0c61b5d262944da24cd27 to your computer and use it in GitHub Desktop.
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