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

allow the vault-webhook to be contacted over loadbalancer or ingress #1196

Conversation

AtzeDeVries
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
API breaks? no
Deprecations? nos
License Apache 2.0

What's in this PR?

MutatingWebhook can also connect to an url. Currently this can only be an (k8s) service. This PR add the ability to create
a k8s Loadbalancer or k8s Ingress and use the url method

Why?

Using the Service method can cause the webhook to be temporary unreachable. Check the following issues
kubernetes/kubernetes#80313
kubernetes/client-go#374 (comment)
In short, the client-go library caches the ip of the pod so if the pod gets an different ip the cache needs to invalidate
which takes time. Using a url instead of the service is a workaround until this is fixed in k8s.

Checklist

  • Code meets the Developer Guide
  • User guide and development docs updated (if needed)
  • Related Helm chart(s) updated (if needed)

To Do

@CLAassistant
Copy link

CLAassistant commented Nov 26, 2020

CLA assistant check
All committers have signed the CLA.

@bonifaido bonifaido self-assigned this Nov 27, 2020
Copy link
Member

@bonifaido bonifaido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @AtzeDeVries ! Thank you very much!

@bonifaido bonifaido merged commit 9a8df76 into bank-vaults:master Nov 27, 2020
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

Successfully merging this pull request may close these issues.

None yet

3 participants