> For the complete documentation index, see [llms.txt](https://daton.gitbook.io/daton-mac/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://daton.gitbook.io/daton-mac/kubernetes-1/k8s-with-traefik-as-ic.md).

# K8S with Traefik as IC

To set up Traefik, copy / paste the following command line:

```bash
helm install --name=traefik --set rbac.enabled=true,dashboard.enabled=true,dashboard.domain=dashboard.localhost stable/traefik
```

In the above command line, we enabled the dashboard (*`dashboard.enabled=true`*) and made it available on [http://dashboard.localhost](http://dashboard.localhost/) (*`dashboard.domain=localhost.domain`*).

The output of the helm install command line will look like:

![](https://3595171846-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD7__2zPv5tlcGFmbZU%2F-LWVpdh7jv7U31Njar_D%2F-LWVu_8ndqAaUNX3Li-s%2FScreen%20Shot%202019-01-18%20at%2013.22.23.png?alt=media\&token=3ab4a7f8-6a2c-40b1-81c2-7771a4e2dfca)

Unfortunately in my case the status of the load balancer ip get stuck at pending, i googled it but without lucky.

So i decided to remove the Traefik helm chart:

```bash
helm ls --short | xargs -L1 helm delete
```

Since i tried to do some stuff to fix the error, to be sure that everything be reset i run:

```bash
minikube delete && minikube start
```

Even if it might not seems, the official documentation of Traefik with Kubernetes is very well detailed and explained. So i decided to try again without Helm.

### Traefik user guide > Kubernetes

To follow the tutorial I can advise to stay focused on the DaemonSet object.&#x20;

{% embed url="<https://docs.traefik.io/user-guide/kubernetes/>" %}
