Closed d-m closed 4 years ago
Hello @d-m.
You need to set mutatingWebhooksTimeoutSeconds parameter in chart values to 10 seconds. That issue is related to an internal kubeapi timeout, and setting mutatingWebhooksTimeoutSeconds to less or equal 10 will fix it.
Btw, @bsctl @prometherion let's make 10 seconds as a default value? That's seems like the same issue, that i've got in https://github.com/clastix/capsule-helm-chart/issues/14
@MaxFedotov honestly, I would start considering to handle the Service metadata through reconciliation loop, rather than webhook.
Do you recall which was the blocker?
@prometherion according to https://github.com/clastix/capsule/pull/84#pullrequestreview-485207090 we decided to implement it later. Seems like this time had come :)
@prometherion shall I create a new issue for moving services from webhook to controller or let's keep this work in this one?
@MaxFedotov please, use this issue as the tracking one.
Hi @d-m,
We refactored code responsible for dealing with service labels\annotations and moved it from webhook to controller. Now this problem should not appear anymore.
@MaxFedotov thanks! I also shortened the timeout which has worked in the meantime.
@d-m oh, forgot to mention. This fix is available in https://github.com/clastix/capsule/releases/tag/v0.0.2
Bug description
When rotating my cluster master ASG, the capsule-mutating-webhook-configuration seemed to prevent new masters from becoming
Ready
when runningkubectl get nodes
. The master appeared functional otherwise. There were no logs in the capsule pods, however there were errors in the kube-apiserver.log, described below. Once I deleted capsule-mutating-webhook-configuration the kube-apiserver errors stopped and the masters showed asReady
.My cluster is Kubernetes 1.18.10 deployed via Kops 1.8.2 to AWS.
How to reproduce
Steps to reproduce the behavior:
Expected behavior
New masters appear
Ready
when checked withkubectl get nodes
.Logs
The following error appears once per second in kube-apiserver.log:
Additional context