I am getting a 404 error from Traefik during the the first install. I installed using Helm and this values file. What am I doing wrong?
globalArguments:
"--global.sendanonymoususage=false"
"--global.checknewversion=false"
additionalArguments:
"--serversTransport.insecureSkipVerify=true"
"--log.level=DEBUG"
deployment:
enabled: true
replicas: 3
annotations: {}
podAnnotations: {}
additionalContainers:
initContainers:
ports:
web:
redirectTo: websecure
websecure:
tls:
enabled: true
ingressRoute:
dashboard:
enabled: false
providers:
kubernetesCRD:
enabled: true
ingressClass: traefik-external
allowExternalNameServices: true
kubernetesIngress:
enabled: true
allowExternalNameServices: true
publishedService:
enabled: false
rbac:
enabled: true
service:
enabled: true
type: LoadBalancer
annotations: {}
labels: {}
spec:
loadBalancerIP: 192.168.3.104
loadBalancerSourceRanges:
externalIP:
I will add some context. I followed the directions of @jakubhajek
kubectl port-forward --namespace default \
$(kubectl get pods \
--selector "app.kubernetes.io/name=traefik" \
--output=name \
--namespace default) \
9000:9000
which returns this error: error: TYPE/NAME and list of ports are required for port-forward
See 'kubectl port-forward -h' for help and examples
For some more information, here is my middleware file:
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: traefik-dashboard-basisauth
namespace: traefik
spec:
basicAuth:
secret: traefik-dashboard-basisauth
and here is my ingress route file:
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: traefik-dashboard
namespace: traefik
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
entryPoints:
- web
- websecure
routes:
- match: Host('traefik.wachtell.net')
kind: Rule
middleware:
- name: traefik-dashboard-basisauth
namespaces: traefik
services:
- name: api@internal
kind: TraefikService
# tls:
# secretName: wachtell-net-staging-tls
When I do curl http://traefik.wachtell.net it returns Moved Permanently and when I do https://traefik.wachtell.net is returns curl: (60) SSL certificate problem: unable to get local issuer certificate. What am I doing wrong? I see a lot of others have had 404 problems.
I found that one has to add: - match: Host(traefik.domain.com
) && (PathPrefix(/dashboard
) || PathPrefix(/api
))
and in the browser "http://traefik.domain.com/dashboard/ " to get rid of the 404 page not found.
system
Closed
January 28, 2023, 3:37pm
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.