Skip to content

traefik 404 page not found #78

Open
@Amiyumi23

Description

@Amiyumi23

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
...
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions