Comments (20)
Also struggling with this. Can access traefik (as evidenced by the 404 page) but dashboard is also a 404...
edit: the trailing / is mandatory so ${ip}/dashboard/
from traefik-helm-chart.
oh, is the trailing /
? haha
Got it, thanks!
from traefik-helm-chart.
The dashboard is exposed on /dashboard
curl http://localhost:9000/dashboard/
from traefik-helm-chart.
still got 404 when accessing http://localhost:9000/dashboard/
any updates?
from traefik-helm-chart.
+1 for this. Why is this closed without due investigation.
We have a default chart installation with the following values.yaml:
traefik:
enabled: true
additionalArguments:
- "--providers.kubernetesingress"
- "--providers.kubernetescrd.ingressclass=traefik-internal"
- "--providers.kubernetesingress.ingressclass=traefik-internal"
- "--metrics.prometheus=true"
- "--metrics.prometheus.entrypoint=metrics"
- "--entrypoints.metrics.address=0.0.0.0:9100"
serviceType: LoadBalancer
nameOverride: traefik-internal
fullnameOverride: traefik-internal
replicas: 1
rbac:
enabled: true
resources:
limits:
cpu: 300m
memory: 200Mi
requests:
cpu: 100m
memory: 200Mi
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 20
metrics:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 60
It does seem to install the dashboard ingressroute
kubectl get ingressroute -n kube-system
NAME AGE
traefik-internal-dashboard 18m
However no dashboard shows up when port-forwarded:
$ curl http://localhost:9000/dashboard/
404 page not found
$
EDIT: For anyone else having trouble with this @nelsonyaccuzzi @yusiwen check that your ingressroute for the dashboard has the correct annotation for the ingress class, should look something like this
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
annotations:
helm.sh/hook: post-install,post-upgrade
kubernetes.io/ingress.class: traefik-internal
labels:
app: traefik-internal
[...]
Note the kubernetes.io/ingress.class
annotation. To be honest this is a poorly designed parameter. If we are expecting users to override the ingress class via a flag to the binary then we can't expect the users to know the effects this flag might have on other resources (ingressRoute in this example).
ingress class should be moved to its own value parameter and modify any and all aspects of the chart that it influences.
TL;DR there's a bug in the chart with the way it handles ingress.class
@ldez @mmatur /reopen
from traefik-helm-chart.
Ran into a similar issue deploying the Helm chart. What is really important, add the /
in the URL when accessing it with port forwarding like here http://localhost:49599/dashboard/
.
from traefik-helm-chart.
Hi @MichelDiz,
The dashboard is now deployed by default only on traefik
entry-point.
You can do the installation with the following command:
helm install traefik traefik/traefik
The dashboard is accessible with the following command:
kubectl port-forward traefik-xxxx-xxx 9000:9000
I'm closing this issue because I think the question is answered.
from traefik-helm-chart.
Hi, I can't get to the dashboard
I've tried with the trailing dash and it doesn't work, but the ping endpoint works
➜ ~ kubectl port-forward $(kubectl get pods --selector "app.kubernetes.io/name=traefik" --output=name -n traefik-v2) 9000:9000 -n traefik-v2
Forwarding from 127.0.0.1:9000 -> 9000
Forwarding from [::1]:9000 -> 9000
➜ ~ curl http://localhost:9000/ping
OK%
➜ ~ curl http://localhost:9000/dashboard
404 page not found
➜ ~ curl http://localhost:9000/dashboard/
404 page not found
from traefik-helm-chart.
Why do we need the tailing "/" on "/dashboard/", It's really confusing, I thought one of the goals of Traefik was (and I quote)
"With Traefik, you spend time developing and deploying new features to your system, not on configuring and maintaining its working state."
I've spent hours trying to get this working, and things like having to add tailing backslashes really don't help :-(
from traefik-helm-chart.
Hello,
You have to set: dashboard.enable=true
and dashboard.ingressRoute=true
FYI this helm chart is now published in this repo: https://github.com/containous/traefik-helm-chart#installing
from traefik-helm-chart.
I ran into a similar issue. I had to add the following to the helm values to be able to port forward to the dashboard:
ingressRoute:
dashboard:
enabled: true
from traefik-helm-chart.
That's right, since v29.0.0, this IngressRoute
has been disabled by default.
@idpsycho This part is not doing anything with this chart:
dashboard:
enable: true
You can remove it. BTW, I opened a PR to improve current example on this subject, see #1134 . Wdyt ? Anything to add ?
from traefik-helm-chart.
The "workaround" I did was clone the repo, edit manually and helm install traefik ./
from traefik-helm-chart.
Hi @ldez , the issue is that I have to clone instead of following the instructions in the readme. To make it work.
from traefik-helm-chart.
You guys could add a new value in https://github.com/containous/traefik-helm-chart/blob/d7fc8d82551dd8c22a842948f32f4dc9233492e7/traefik/templates/dashboard-hook-ingressroute.yaml#L1
with "OR" operator we could do something like
helm install traefik traefik/traefik --set expose.dashboard=true
Just supposing about it, need to test out the hypothesis.
from traefik-helm-chart.
@mmatur
I've installed it using
helm traefik treafik/treafik
Then I do:
$ kubectl port-forward traefik-6c4575d8b8-5w2z5 9000:9000
$ curl http://localhost:9000/ping
OK
$ curl http://localhost:9000/
404 page not found
Any idea of what I'm missing?
from traefik-helm-chart.
Thanks @mmatur . But still having trouble.
Forgot to add:
curl http://localhost:9000/dashboard
404 page not found
from traefik-helm-chart.
I cleared up this error on my side by tearing down the traefik helm release, reinstalling it. Something is screwed up with the CRDs, as the post directly above me indicates. But I wasn't doing anything to change the ingress classes so those changes didn't help me.
from traefik-helm-chart.
I ran into a similar issue. I had to add the following to the helm values to be able to port forward to the dashboard:
ingressRoute: dashboard: enabled: true
That's real methods dude... It's weird that after open ingressRoute
but without actual ingressRoute resource in k8s when using kubectl get ingressroute --all-namespace
.
from traefik-helm-chart.
when running this:
kubectl port-forward $(kubectl get pods --selector "app.kubernetes.io/name=traefik" --output=name) 9000:9000
i got 404 even with slash at the end: http://127.0.0.1:9000/dashboard/
what fixed it was to create fix-traefik-dashboard.yaml with:
ingressRoute:
dashboard:
enabled: true
and run:
helm upgrade --install traefik traefik/traefik -f fix-traefik-dashboard.yaml
now it works (no need to restart port forwarding either)
(just summarizing, because there wasnt full summary answer anywhere in here)
EDIT: removed unnecessary part, and tested, works without it
from traefik-helm-chart.
Related Issues (20)
- Dashboard starts returning 404 after 28.2.0 update HOT 4
- Unable to use additionalServices to setup internal loadbalancer on AKS HOT 5
- Templates have wrong indentation? HOT 2
- Implement log.filePath HOT 2
- gateway arguments in the wrong order HOT 1
- Default gateway is incompatible with cert-manager HOT 6
- Docs issues -values.yml ports.$foo.exposed HOT 2
- reusePort not working in k8s HOT 1
- helm executing "traefik/templates/gateway.yaml" at <.Values.ports.web.port>: nil pointer evaluating interface {}.port HOT 1
- Input validation using with schema
- CRD only Helm chart for Traefik
- Signed release
- Cannot install Traefik Proxy v3.1 with Chart v26.1.0 HOT 1
- Invalid value: "array": tls must be specified for protocols ['HTTPS', 'TLS'] HOT 8
- Traefik is using CNI gateway instead client IP HOT 3
- Add support for defining the static configuration via helm chart HOT 5
- Hostname wildcards not allowed due to "error converting YAML to JSON"
- Support Gateway infrastructure HOT 1
- Traefik is using `channel: experimental` by default with Gateway API HOT 2
- ingressRoute dashboard HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from traefik-helm-chart.