Skip to content

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

Draft
royhadad wants to merge 9 commits into
mainfrom
persistentVolume_poc
Draft

refactor: [experimental] create TLS certificate via code & save it in a PersistentVolume#421
royhadad wants to merge 9 commits into
mainfrom
persistentVolume_poc

Conversation

@royhadad

Copy link
Copy Markdown
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.

1 participant