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

refactor: [experimental] create TLS certificate via code & save it in a PersistentVolume #421

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

royhadad
Copy link
Contributor

This is a draft for creating the TLS certificate via the webhook-server code and saving it in a PersistentVolume shared between the webhook-server's pods.

How does it work?

  1. The webhook-server deployment has a PersistentVolume attached to it (deployment.yaml)
  2. upon webhook-server startup, if no certificates are found in the file system, a TLS certificate and CA are created via the code and saved to the PersistentVolume via the file system.
  3. The certificates are read from the volume, and the webhook-server starts listening for requests.
  4. The webhook-server attaches the CA to the ValidatingWebhookConfiguration and enables it to start forwarding requests to the webhook-server

@royhadad royhadad requested a review from myishay July 13, 2023 17:27
@royhadad royhadad changed the title refactor: [experimental] create certificate via code & save it in a PersistentVolume refactor: [experimental] create TLS certificate via code & save it in a PersistentVolume Jul 13, 2023
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

1 participant