I have written Kubernetes deployment that creates a Pod, which hosts an HTTP server with [mutating] admission webhook.
I want to automatically configure Kubernetes so that it uses that HTTP server as a mutation admission webhook. I want this to happen as part of automatic deployment of your product. I want everything to be deployable using kubectl create -f
. How can I do that?
I've read some tutorials, but they're are really complicated and involve manual steps (e.g. generating keys and certificates, approving requests, etc). There must be some way to just do all those things automatically...