-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Error /tmp/k8s-webhook-server/serving-certs/tls.crt: no such file or directory"
has been faced
#1501
Comments
/kind bug |
/tmp/k8s-webhook-server/serving-certs/tls.crt: no such file or directory"
to run testdata with webhooks/tmp/k8s-webhook-server/serving-certs/tls.crt: no such file or directory"
has been faced
Shows that it was already addressed before: kubernetes-sigs/controller-runtime#491 I will keep it open in order to check and see if has anything else that should be addressed here. E.g could we customize. the testdata mocks generated by the scripts to allow users to tun the projects which are examples? |
/assign @camilamacedo86 |
documented already; https://github.com/kubernetes-sigs/kubebuilder/pull/776/files |
I commented
|
|
@libratiger how to do if I want to use webhooks ? |
@libratiger & @camilamacedo86 I similar errors, how would I go about it, while I want to use webhook. |
Check |
I am having the same issue, I uncommented the webhook and certmanager comments in the default/customize. And I installed the cert-manager tool (cmctl) but I am not sure what to do with it. How am I supposed to inject a cert? Does the make run handle that using the certificate yaml? Below is my default/kustomization.yaml:
|
@moza88 You need to install cert-manager onto your cluster. |
Don't think that's a recommendable solution, but to your point, that if statement shouldn't be run when ENABLE_WEBHOOKS is false, so you should wrap all those lines inside another if statement
That in combination with running |
I'm also facing the same issue. Despite trying |
I tried to develop a webhook for sealos (a kubernetes distribution) :
When I deploy the controller, cert manager will work, but how can I fixed this issue in dev env? |
Uncomment the lines in your config. #1501 (comment) |
@jgillich we are talking about the go binary here, you just can't run it in http mode (in order to use an https proxy in front of it for example) the WebHookServer just won't run in http mode. |
in
|
for minikube example 1. ssh to minikube node2. find the location of .cert file and .key file used by apiserver
|
Error:
The text was updated successfully, but these errors were encountered: