Skip to content

Question about injecting sidecar proxies to pods in the kube-system namespace #12153

Answered by Flou21
Flou21 asked this question in Help
Discussion options

You must be logged in to vote

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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@alpeb
Comment options

@Flou21
Comment options

Answer selected by Flou21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants