k8s-hello-mutating-webhook icon indicating copy to clipboard operation
k8s-hello-mutating-webhook copied to clipboard

There is an error when i apply the "make k8s-deploy" script command

Open Wenshiqi222 opened this issue 3 years ago • 0 comments

I clone your code in my own k8s environment (instaled by kubeadm);and i replace the image repo and tag with my own,when i type the Makefile command one by one ,i got the error output below:

[root@eb69218 k8s-hello-mutating-webhook-main]# make k8s-deploy kustomize build k8s/other | kubectl apply -f - configmap/hello-configmap unchanged service/hello-webhook-service created mutatingwebhookconfiguration.admissionregistration.k8s.io/hello-webhook.leclouddev.com created kustomize build k8s/csr | kubectl apply -f - serviceaccount/webhook-cert-sa unchanged clusterrole.rbac.authorization.k8s.io/webhook-cert-cluster-role unchanged clusterrolebinding.rbac.authorization.k8s.io/webhook-cert-cluster-role-binding configured job.batch/webhook-cert-setup created Waiting for cert creation ... kubectl certificate approve hello-webhook-service.default Error from server (NotFound): certificatesigningrequests.certificates.k8s.io "hello-webhook-service.default" make: *** [k8s-deploy-other] Error 1

It seems that the job isnot created normally, and the certificateigningrequests didn't work.

Wenshiqi222 avatar May 17 '21 06:05 Wenshiqi222