Skip to content

Instantly share code, notes, and snippets.

@lfache
Created May 26, 2020 21:03
Show Gist options
  • Save lfache/c57fb826e1fa236d5f99f3894969281a to your computer and use it in GitHub Desktop.
Save lfache/c57fb826e1fa236d5f99f3894969281a to your computer and use it in GitHub Desktop.
Modify Traefik container for HTTP to HTTPS redirect
containers:
- name: traefik
image: traefik:v2.2
args:
- --api.insecure
- --accesslog
- --entrypoints.web.Address=:80
- --entrypoints.websecure.Address=:443
- --providers.kubernetescrd
- --entrypoints.web.http.redirections.entryPoint.to=:443
- --entrypoints.web.http.redirections.entryPoint.scheme=https
- --certificatesresolvers.myresolver.acme.tlschallenge
- [email protected]
- --certificatesresolvers.myresolver.acme.storage=acme.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment