-
hey i have a relatively simple question i have a k3s cluster, in the cluster traefik is deployed as ingress controller in the kube-system namespace But the linkerd-injector does not inject a linkerd sidecar container into the traefik pod I would like to use multi cluster communication with it. help would be appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I have now found the reason for my problem, I could have guessed it beforehand. |
Beta Was this translation helpful? Give feedback.
Yes, that makes sense so far.
I only have the problem in my single node k3s clusters
By default, k3s delivers a Traefik Ingress Controller in the kube-system namespace. rke2 does the same with nginx in kube-system.
So it's not really a decision I made myself, it's just the default
Anyway, I found a workaround by adjusting the mutatingwebhookconfiguration so that injecting the proxy into the traefik pod works.
I will write a kustomize patch for it to be able to deploy this hack automatically with a gitops tool (rancher fleet in my case).
It's not really a nice way, but it's one that works for me
I mark the discussion as answered, even if the answer feels a bit hacky