-
Notifications
You must be signed in to change notification settings - Fork 15
Description
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.