shikanon / kubeflow-manifests

kubeflow国内一键安装文件
GNU General Public License v3.0
342 stars 118 forks source link

MountVolume.SetUp failed for volume "kfserving-webhook-server-cert" : secret "kfserving-webhook-server-cert" not found #115

Open wenjunGU opened 1 year ago

wenjunGU commented 1 year ago

我的k8s版本是1.18.3,然后一直都有三个pod起不来,报找不到密文的错误。后面查到了yaml中这些内容。 apiVersion: cert-manager.io/v1alpha2 kind: Certificate metadata: labels: app: kfserving app.kubernetes.io/component: kfserving app.kubernetes.io/name: kfserving kustomize.component: kfserving name: serving-cert namespace: kubeflow spec: commonName: kfserving-webhook-server-service.kubeflow.svc dnsNames:

但是也无法apply进去。尝试create的时候会报如下错误。请问这个有解决办法吗? Error from server (InternalError): error when creating "rbac.yaml": Internal error occurred: failed calling webhook "webhook.cert-manager.io": mutations.webhook.cert-manager.io is forbidden: User "system:metrics-server" cannot create resource "mutations" in API group "webhook.cert-manager.io" at the cluster scope Error from server (InternalError): error when creating "rbac.yaml": Internal error occurred: failed calling webhook "webhook.cert-manager.io": mutations.webhook.cert-manager.io is forbidden: User "system:metrics-server" cannot create resource "mutations" in API group "webhook.cert-manager.io" at the cluster scope Error from server (InternalError): error when creating "rbac.yaml": Internal error occurred: failed calling webhook "webhook.cert-manager.io": mutations.webhook.cert-manager.io is forbidden: User "system:metrics-server" cannot create resource "mutations" in API group "webhook.cert-manager.io" at the cluster scope

并且我的cert-manager的三个pod也都正常启动,并且没有任何报错信息。

zy410692 commented 1 year ago

看一下apiserver 里面加下这个配置能不能解决 ?--enable-admission-plugins=MutatingAdmissionWebhook,ValidatingAdmissionWebhook