-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider cleaning up the kube-proxy-clean-up
init container
#122
Comments
@ScheererJ can you confirm my observation that this init container can be safely removed? |
kube-proxy-clean-up
init containerkube-proxy-clean-up
init container
@ialidzhikov Your observation is correct that the first of the two cleanup containers is used per default and there is currently no switch exposed to change this at runtime without doing a code change first. Therefore, the container could be safely removed. However, I would not do it. From my point of view, the approach documented by cilium is dangerous as it simply discards rules according to their names. Therefore, I would rather like to have a fallback option, which is the second container. |
It creates confusion for external contributors and I don't see much value keeping something that never gets executed. Right now this init container logs the following warnings/errors:
The reason seems to be that it does not mount If you still see value in keeping it, then I can close this issue (and the corresponding draft PR). |
Honestly speaking, I doubt that this init container holds any external contributor back. There are far more components in this repository that are not used in the Gardener setup, but still present as they are part of the upstream cilium distribution, e.g. Removing the container will leave it in version control for sure. However, you also need to still have in mind that this container existed in case of an issue to actually look for it. People forget over time... Let's revisit this topic once @DockToFuture is back beginning of October. |
How to categorize this issue?
/area networking
/kind cleanup
What would you like to be added:
c92b7ad introduces 2 init containers:
cilium-kube-proxy-clean-up
andkube-proxy-clean-up
. Depending on the value of.Values.kubeProxyCleanup
one of the init containers is picked up.As far as I can see
.Values.kubeProxyCleanup
is always set tocilium-documentation
gardener-extension-networking-cilium/charts/internal/cilium/charts/agent/values.yaml
Lines 25 to 26 in 9c2fa21
which means that always the 1st init container (
cilium-kube-proxy-clean-up
) is picked up and used.Currently I don't see when and how the
kube-proxy-clean-up
init container would be picked up and used.Why is this needed:
No need of init container that is never used/rendered.
The text was updated successfully, but these errors were encountered: