Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traefik UI port #350

abusaidm opened this issue Apr 15, 2019 · 5 comments


Copy link

commented Apr 15, 2019

Looking at enabling the UI port for traefik, I noticed that there is a port 8880 enabled and there is no mention of configuring the Traefik UI for this port, also the name httpn was slightly miss leading. The snippet below is how the port looks on a default installation of k3s without any extra inputs.

   "name": "httpn",
  "containerPort": 8880,
  "protocol": "TCP"

Is there an option to enable Traefik UI from the installation params or do I need to install Traefik and configure it myself.



This comment has been minimized.

Copy link

commented Apr 18, 2019

I'm not sure how to override or further configure, but I see this comes with the traefik chart, in its template traefik/templates/configmap.yaml, which forms the traefik.toml config

e.g. from

Kind: ConfigMap
  name: {{ template "traefik.fullname" . }}
  traefik.toml: |
    # traefik.toml
      {{- if .Values.whiteListSourceRange }}
      {{ template "traefik.whiteListSourceRange" . }}
      {{- end }}
      address = ":8880"

This comment has been minimized.

Copy link

commented Apr 23, 2019

In the traefik chart you are able to pass config variables to customise what you want with traefik for example

helm install --name my-release --namespace kube-system \
  --set dashboard.enabled=true, stable/traefik

will install this chart and enable the dashboard through the mentioned domain name.


This comment has been minimized.

Copy link

commented Apr 24, 2019

The way to handle this (at least it's the way I have handled it), is to add --no-deploy traefik to your k3s server command, and then create your own Traefik manifest (or run helm manually).

My traefik manifest looks like this (Jinja2 template used with Ansible):

kind: HelmChart
  name: traefik
  namespace: kube-system
  chart: stable/traefik
    ssl.enabled: "true"
    acme.challengeType: "tls-alpn-01" ""
    acme.enabled: "true"
    acme.logging: "true"
    acme.persistence.accessMode: "ReadWriteOnce"
    acme.persistence.enabled: "false"
    acme.persistence.size: "64Mi"
    gzip.enabled: "true"
    metrics.prometheus.enabled: "true"
    metrics.prometheus.restrictAccess: "true"
    rbac.enabled: "true"
    traefikLogFormat: "json"
  valuesContent: |-
      staging: false
        enabled: true
          - main:
      enabled: true
      domain: ""
          user: "{{ traefik_dash_pass | string | password_hash('md5') }}"

This comment has been minimized.

Copy link

commented Apr 26, 2019

Thanks, I have reached similar conclusion recently, thanks.
I will mark this as closed.

BTW I am a big fan of this project and watching it closely, I will try and spare time to understand how it is developed and see if I can contribute.

@abusaidm abusaidm closed this Apr 26, 2019


This comment has been minimized.

Copy link

commented Jul 14, 2019


I proceed in a sligthly different way to access to the Trarfik UI making the folowing updates:

  • update the traefik configmap to include [api] and add the endpoint address = ":8880"
  • update the traefic service to expose the endpoint "port": 8880
  • add an ingress to access to this endpoint.

The updated config map :

defaultEntryPoints = ["http","https"]
  address = ":8880"

The updated service:

  - name: api
    port: 8880
    protocol: TCP
  - name: http

The ingress file:

apiVersion: extensions/v1beta1
kind: Ingress
  name: traefik-web-ui
  namespace: kube-system
  - host: traefik.k3s.local
      - path: /
          serviceName: traefik
          servicePort: 8880

Maybe it is simpler to install treafik after k3s, I will try.

Best Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
6 participants
You can’t perform that action at this time.