Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 933 Bytes

traefik.md

File metadata and controls

26 lines (17 loc) · 933 Bytes

Setup Traefik Kubernetes Ingress Controller

  1. Clone this Repo
  2. Change the toml config in the traefik-config-map.yaml
  3. Apply Kustomization
    • For kubectl version 1.15 and above run kubectl apply -k traefik
    • Download and install Kustomize then run kustomize build traefik | kubectl apply -f -

Generate Self-Signed TLS Certificates Ingress (Optional)

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout certs/tls.key -out certs/tls.crt -subj "/CN=minikube/O=minikube"

Generate Password for Basic Auth for the Traefik Dashboard

To generate a password use

htpasswd -mbc pass.txt admin <password>

after that a file named pass.txt will be generated with data like admin:$apr1$zpOqYFVD$o/XegU9IaRjVrRQkrbvKp.

Simply copy this and replace what's available in the users array of the toml file