Here's my traefik values.yaml:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: traefik
helmCharts:
- name: traefik
includeCRDs: true
namespace: traefik
releaseName: traefik
version: 20.4.1
repo: https://helm.traefik.io/traefik
valuesInline:
ingressRoute:
dashboard:
matchRule: "Host(`traefik.service.kube`) && (PathPrefix(`/dashboard`) || PathPrefix(`/api`))"
entryPoints:
- web
logs:
general:
level: INFO
access:
enabled: true
additionalArguments:
- --experimental.hub
- --hub
globalArguments: []
providers:
kubernetesIngress:
allowExternalNameServices: true
publishedService:
enabled: true
hub:
enabled: true
tunnelPort: 9901
Here's my traefik-hub values.yaml (kustomize)
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: traefik
helmCharts:
- name: hub-agent
includeCRDs: true
namespace: traefik
releaseName: traefik-hub
version: 1.1.2
repo: https://helm.traefik.io/hub
valuesInline:
tokenSecretRef:
name: hub-token
key: token
tunnelDeployment:
traefik:
tunnelHost: traefik-hub.traefik.svc.cluster.local
I cant upload logs here, its large, so its here: www.astronaut.ninja/logs.txt
Biggest thing that stands out is
{"level":"debug","component":"kubernetes_client","method":"GET","url":"https://10.43.0.1:443/api/v1/namespaces/traefik/secrets/hub-certificate","time":1669296637,"message":"Performing request"}
{"level":"debug","component":"kubernetes_client","method":"POST","url":"https://10.43.0.1:443/apis/traefik.containo.us/v1alpha1/namespaces/traefik/middlewares","time":1669296637,"message":"Performing request"}
{"level":"debug","component":"kubernetes_client","method":"POST","url":"https://10.43.0.1:443/apis/traefik.containo.us/v1alpha1/namespaces/traefik/middlewares","time":1669296637,"message":"Performing request"}
{"level":"debug","component":"kubernetes_client","method":"POST","url":"https://10.43.0.1:443/apis/networking.k8s.io/v1/namespaces/traefik/ingresses","time":1669296637,"message":"Performing request"}
{"time":1669296637,"message":"http: TLS handshake error from 10.42.1.0:44080: remote error: tls: bad certificate"}
{"level":"debug","component":"kubernetes_client","request":"POST https://10.43.0.1:443/apis/networking.k8s.io/v1/namespaces/traefik/ingresses (status: 500)","timeout":"1s","remaining":2,"time":1669296637,"message":"Retrying request"}
{"level":"debug","component":"kubernetes_client","method":"GET","url":"https://10.43.0.1:443/apis/networking.k8s.io/v1/ingresses?allowWatchBookmarks=true&resourceVersion=76014383&timeout=7m0s&timeoutSeconds=420&watch=true","time":1669296638,"message":"Performing request"}
{"time":1669296639,"message":"http: TLS handshake error from 10.42.1.0:44094: remote error: tls: bad certificate"}
{"level":"debug","component":"kubernetes_client","request":"POST https://10.43.0.1:443/apis/networking.k8s.io/v1/namespaces/traefik/ingresses (status: 500)","timeout":"2s","remaining":1,"time":1669296639,"message":"Retrying request"}
{"level":"debug","component":"platform_client","method":"GET","url":"https://platform.hub.traefik.io/agent/commands","time":1669296640,"message":"Performing request"}
{"level":"error","error":"create ingress: Internal error occurred: failed calling webhook \"hub-agent.traefik.svc\": failed to call webhook: Post \"https://hub-agent-controller.traefik.svc:443/ingress?timeout=10s\": x509: certificate signed by unknown authority (possibly because of \"x509: invalid signature: parent certificate cannot sign this kind of certificate\" while trying to verify candidate authority certificate \"hub-agent-controller.traefik.svc\")","time":1669296641,"message":"Unable to synchronize certificate with platform"}
{"time":1669296641,"message":"http: TLS handshake error from 10.42.1.0:45130: remote error: tls: bad certificate"}