A kubectl YAML to deploy a Traefik on Kubernetes
This YAML use Kustomize to decline different in overlays directory. Please tune your directory, or create new one base on the common files in "base" directory.
You can tune the prod or dev Kustomize Overlay with :
- traefik-persistentvolumeclaim.yaml : to match your storage driver for exemple,
- traefik-ingressroute.yaml : to match your FQDN (for Traefik Dashboard).
- traefik-secret.yaml : to change the login and the password for the dashboard.
- traefik-configmap.yaml : to tune the configuration of the traefik dashboard.
Note : the dev configuration use letsencrypt-staging, you must keep this configuration and add manually the root CA of the LE Staging Server in your browser.
The insecure entrypoint (HTTP) is automatically redirected to the secure entrypoint (HTTPS).
The namespace used for this deployment is "kube-system". The TLSOption must stay in "default" namespace.
# <env> must match your environment overlay
git clone https://github.com/kyzdev/traefik-k3s.git
cd traefik-k3s
kubectl apply -k overlays/<env>
# <env> must match your environment overlay
kubectl delete -k overlays/<env>