Skip to content

Instantly share code, notes, and snippets.

@joejulian
Created August 30, 2017 16:57
Show Gist options
  • Save joejulian/607f0090230d9aa8701155590c22c3e2 to your computer and use it in GitHub Desktop.
Save joejulian/607f0090230d9aa8701155590c22c3e2 to your computer and use it in GitHub Desktop.
kind: ConfigMap
apiVersion: v1
metadata:
name: traefik-https-cfg
namespace: kube-system
data:
traefik.toml: |
# traefik.toml
defaultEntryPoints = ["http","https"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[acme]
email = "joe@julianfamily.org"
storageFile = "/etc/traefik/acme.json"
entryPoint = "https"
onDemand = true
onHostRule = true
caServer = "https://acme-v01.api.letsencrypt.org/directory"
# caServer = "https://acme-staging.api.letsencrypt.org/directory"
# [[acme.domains]]
# main = "julianfamily.org"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment