-
Notifications
You must be signed in to change notification settings - Fork 461
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
How do you approve the CA in the cluster #47
Comments
For reference: Here is my script that makes the cert + key:
And here is where my webhook config
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I have been trying to replicate your code in Python and have reached a point where I managed to :
The problem I have is that the certificate is not recognized:
failed to call webhook: Post "...svc:443/mutate?timeout=10s": x509: certificate signed by unknown authority
Looking at your code, I cannot find how the self-signed certificate is made recognizable to kubernetes. I can see that :
There are 2 CA configs in the script and 2 certificates made. The first is passed to the webhook configuration and the second is used in the webserver together with the private key. I do not quite understand why this is enough for kubernetes to recognize the certificate signer. Isn't there supposed to be a Certificate Signing Request made?
The text was updated successfully, but these errors were encountered: