Setup Traefik Ingress Controller on Kubernetes

What is Traefik?

"Traefik is a modern, full-featured router with powerful capabilities out of the box ... [which] installs as one or more pods of controllers, ingress proxies, and mesh proxies in your Kubernetes cluster."

Add Helm Repo

Add the helm repository for Traefik.

Bash
Copy

Update Helm Repos

Update your Helm repositories locally to fetch the updates from the newly-added traefik chart repository.

Bash
Copy

(Optional) Enable HTTPS/TLS

Insecure

If you opt not to provide a valid SSL certificate, such as for testing purposes, you may disable TLS/SSL validation by setting insecureSkipVerify to true .

values.yaml
Copy

Secure

values.yaml
Copy

Helm Install

Install the Traefik chart, ensuring you are scoped to the desired namespace, and optionally passing the -f flag with the name of the file specified above for passing any additional arguments.

Bash
Copy

Validate Kubernetes Resources

Validate that the resources were deployed correctly, e.g. a service was created, there is at least one running pod, etc.

Bash
Copy

Expose Traefik Dashboard

By default, the Helm chart deploys an IngressRoute for the Traefik dashboard.

YAML
Copy

Port Forwarding

If you're having trouble reaching the dashboard on the exposed Ingress route, you can alternatively port-forward the connection via kubectl .

YAML
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard