Skip to content

Instantly share code, notes, and snippets.

@gintsgints
Last active June 7, 2019 17:29
Show Gist options
  • Save gintsgints/e4dd714e0b9d6043e7004093b7991c46 to your computer and use it in GitHub Desktop.
Save gintsgints/e4dd714e0b9d6043e7004093b7991c46 to your computer and use it in GitHub Desktop.
Traefik experiments

Create cluster: https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/#instructions

install & initialize Helm

Create values.yaml

dashboard:
  enabled: true
  domain: traefik-ui.minikube
rbac:
  enabled: true
kubernetes:
  namespaces:
   - default
   - kube-system

Install Helm chart

helm install --values values.yaml stable/traefik

Then edit your traefik ballancer and add Host IP (if it is not resolved itself)

kubectl edit service <your_helm_deployment_here>-traefik

and add

 externalIPs:
  - 10.32.0.1

After cluster IPs. (replace with your host IP)

Then edit /etc/hosts and add same IP for ingress hostname:

10.32.0.1       traefik-ui.minikube

Enjoy dashboard - http://traefik-ui.minikube/dashboard/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment