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 404 page not found #78

Open
Amiyumi23 opened this issue Mar 25, 2025 · 1 comment
Open

traefik 404 page not found #78

Amiyumi23 opened this issue Mar 25, 2025 · 1 comment

Comments

@Amiyumi23
Copy link

Amiyumi23 commented Mar 25, 2025

I tried to run traefik and it didn't work.
I installed Kubernetes from here quick start.. https://k3s.io/
According to this guide and watching the video.
https://technotim.live/posts/kube-traefik-cert-manager-le/

I reached the point in the guide ""Visit https://traefik.local.example.com""
But I'm logging in using a local IP address http://192.168.178.225/ - 404 page not found

type: LoadBalancer
I don't use it yet and I don't have it installed.
I edit file values.yaml

service:
  enabled: true
  type: NodePort
  ports:
    web:
      port: 80
      nodePort: 30080  
    websecure:
      port: 443
      nodePort: 30443 

helm install --namespace=traefik traefik traefik/traefik --values=values.yaml

kubectl apply -f default-headress.yml
kubectl apply -f ingress.yml
kubectl apply -f middleware.yml

Log Pod:

kubectl logs -n traefik traefik-f44b9dcc6-cbmkn 
2025-03-25T17:35:27Z INF Traefik version 3.3.4 built on 2025-02-25T10:11:01Z version=3.3.4
2025-03-25T17:35:27Z INF 
Stats collection is disabled.
Help us improve Traefik by turning this feature on :)
More details on: https://doc.traefik.io/traefik/contributing/data-collection/

2025-03-25T17:35:27Z INF Starting provider aggregator *aggregator.ProviderAggregator
2025-03-25T17:35:27Z INF Starting provider *ingress.Provider
2025-03-25T17:35:27Z INF Starting provider *traefik.Provider
2025-03-25T17:35:27Z INF Starting provider *crd.Provider
2025-03-25T17:35:27Z INF ingress label selector is: "" providerName=kubernetes
2025-03-25T17:35:27Z INF Creating in-cluster Provider client providerName=kubernetes
2025-03-25T17:35:27Z INF label selector is: "" providerName=kubernetescrd
2025-03-25T17:35:27Z INF Creating in-cluster Provider client providerName=kubernetescrd
2025-03-25T17:35:27Z INF Starting provider *acme.ChallengeTLSALPN
2025-03-25T17:35:27Z INF ExternalName service loading is enabled, please ensure that this is expected (see AllowExternalNameServices option) providerName=kubernetes
2025-03-25T17:35:27Z INF ExternalName service loading is enabled, please ensure that this is expected (see AllowExternalNameServices option) providerName=kubernetescrd
2025-03-25T17:35:28Z ERR Cannot create service error="service not found" ingress=app-ingress namespace=default providerName=kubernetes serviceName=your-service-name servicePort=&ServiceBackendPort{Name:,Number:80,}
2025-03-25T17:35:28Z ERR Cannot create service error="service not found" ingress=app-ingress namespace=default providerName=kubernetes serviceName=your-service-name servicePort=&ServiceBackendPort{Name:,Number:80,}

what am i doing wrong? i even changed the port in the file values.yaml to 443 instead of this:
advertisedPort: 4443

in file default-headers.yaml
I used it like this for traefik version 3

apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
...
...
@sfcal
Copy link

sfcal commented Mar 27, 2025

I am also having the same issue. Have yet to dig deeper.

Edit:

After running kubectl logs -n traefik deployment/traefik

I saw that I had issues with auth middleware

2025-03-27T19:55:04Z ERR Error while reading basic auth middleware error="secret 'traefik/traefik-dashboard-auth' not found" middlewareName=traefik-traefik-dashboard-basicauth providerName=kubernetescrd
2025-03-27T19:55:05Z ERR Error while reading basic auth middleware error="secret 'traefik/traefik-dashboard-auth' not found" middlewareName=traefik-traefik-dashboard-basicauth providerName=kubernetescrd

Correcting this fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants