Last active
December 19, 2018 00:11
-
-
Save dotfold/eb0f34242643fb53bc450f28935cc0b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# traefik-config-map.yml | |
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
namespace: kube-system | |
name: traefik-conf | |
data: | |
traefik.toml: | | |
# traefik.toml | |
logLevel = "DEBUG" | |
defaultEntryPoints = ["http","https"] | |
[entryPoints] | |
[entryPoints.http] | |
address = ":80" | |
[entryPoints.http.redirect] | |
entryPoint = "https" | |
# Enable basic authentication | |
#[entryPoints.https.auth.basic] | |
#users = ["igorc:$apr1$k2qslCn6$0OgA8vhnyC8nJ99YfJMOM/"] | |
[entryPoints.https] | |
address = ":443" | |
[entryPoints.https.tls] | |
# Enable this only if using static wildcard cert | |
# stored in a k8s Secret instead of LetsEncrypt | |
#[[entryPoints.https.tls.certificates]] | |
#CertFile = "/ssl/tls.crt" | |
#KeyFile = "/ssl/tls.key" | |
[kubernetes] | |
[web] | |
address = ":8080" | |
# Enable basic authentication | |
# [web.auth.basic] | |
# users = ["igorc:$apr1$k2qslCn6$0OgA8vhnyC8nJ99YfJMOM/"] | |
#[acme] | |
#email = "igorc@encompasscorporation.com" | |
#storage = "traefik/acme/account" # for KV store | |
#storage = "/acme/acme.json" | |
#entryPoint = "https" | |
#onDemand = true | |
#onHostRule = true | |
# For Staging, comment out to go to Prod | |
#caServer = "https://acme-staging.api.letsencrypt.org/directory" | |
#[[acme.domains]] | |
#main = "virtual.local" | |
#sans = ["nodejs-app.virtual.local", "encompass.virtual.local"] | |
# For Consul KV store | |
#[consul] | |
#endpoint = "traefik-consul:8500" | |
#watch = true | |
#prefix = "traefik" | |
# For Docker containers | |
#[docker] | |
#endpoint = "unix:///var/run/docker.sock" | |
#domain = "docker.localhost" | |
#watch = true | |
# For etcd KV store (traefik v1.5.0-rc3 or higher) | |
#[etcd] | |
#endpoint = "192.168.0.147:2379,192.168.0.148:2379,192.168.0.149:2379" | |
#watch = true | |
#prefix = "/traefik" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment