Skip to content

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

@Wenshiqi222

Description

@Wenshiqi222

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions