Skip to content
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

Webhook is not ready and leads to helm upgrade failure. #389

Open
ljkiraly opened this issue Jul 15, 2024 · 0 comments
Open

Webhook is not ready and leads to helm upgrade failure. #389

ljkiraly opened this issue Jul 15, 2024 · 0 comments

Comments

@ljkiraly
Copy link

During a helm upgrade an error occurs:

cannot patch "spire-controller-manager" with kind ClusterSPIFFEID: Internal error occurred: failed calling webhook "spire-controller-manager.nsm.svc": failed to call webhook: Post "https://spire-controller-manager.nsm.svc:443/validate-spire-spiffe-io-v1alpha1-clusterspiffeid?timeout=30s": dial tcp [fd00:eccd:17:ffff::6666:2d4f]:443: connect: connection refused

After some investigation seems that spire-controller-manager is waiting for webhook to be ready. Sometime the webhook needs 50 seconds to start, after helm command issued. That leads to the kubernetes error above.
The repeated helm upgrade usually is successful. The problem pops up randomly.

  • Can somehow control the timeout in spire controller manager? (the spire-controller-manager-webhook.yaml has a timeoutSeconds parameter - setting that to 30 does not have affect on this issue)
  • Can you suggest any workaround? (e.g. checking webhook availability in init container)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant