Creating secret Error:
# kubectl create secret generic thanos-objectstorage –from-file=objstore.yaml -n monitoring
Error Messages:
Error from server (InternalError): Internal error occurred: failed calling webhook “rancher.cattle.io”: Post https://rancher-webhook.cattle-system.svc:443/v1/webhook/mutation?timeout=10s: service “rancher-webhook” not found
According to the error report, it may be a problem with rbac, which cannot create
# kubectl get mutatingwebhookconfigurations
NAME WEBHOOKS AGE
mutating-webhook-configuration 7 156d
rancher.cattle.io 2 156d
# kubectl get validatingwebhookconfigurations
NAME WEBHOOKS AGE
rancher.cattle.io 2 156d
validating-webhook-configuration 7 156d
There are two admission controllers found in the view, both of which are leftover from the previous installation of components
Just Delete it
# kubectl delete mutatingwebhookconfigurations mutating-webhook-configuration
mutatingwebhookconfiguration.admissionregistration.k8s.io "mutating-webhook-configuration" deleted
# kubectl delete mutatingwebhookconfigurations rancher.cattle.io
mutatingwebhookconfiguration.admissionregistration.k8s.io "rancher.cattle.io" deleted
# kubectl delete validatingwebhookconfigurations rancher.cattle.io
validatingwebhookconfiguration.admissionregistration.k8s.io "rancher.cattle.io" deleted
# kubectl delete validatingwebhookconfigurations validating-webhook-configuration
validatingwebhookconfiguration.admissionregistration.k8s.io "validating-webhook-configuration" deleted
Read More:
- [Solved] Error from server (InternalError): error when creating “ingress.yaml”: Internal error occurred: fail
- [Solved] Kubernetes ingress-srv. error: failed calling webhook “validate.nginx.ingress.kubernetes.io”
- [Solved] K8s cluster build error: error: kubectl get csr No resources found.
- kubernetes Error from server (AlreadyExists): error when creating “kubernetes-dashboard.yaml”: serv
- [Solved] k8s error retrieving resource lock default/fuseim.pri-ifs: Unauthorized
- [kubernetes] the pod instance of calico node always reports an error and restarts
- error: error validating “ingress-tomcat6.yaml“: error validating data: [ValidationError(Ingress.spec
- [Solved] Milvus Error: [ERROR][SERVER][TakeToEUse milvus.has_collection to verify whether the collection exists
- [Solved] Ubuntu 20.04 LTS Install k8s Error: The connection to the server localhost:8080 was refused
- Kubernetes Error: Error in configuration: unable to read client-cert* unable to read client-key*
- Mac M1 Start Virtual Machine Centos8 with PD to install Kafka error: Error: VM option ‘UseG1GC‘
- cannot create windows service for mysql. error:0 [How to Solve]
- Analysis of npm error ENOTFOUND npm ERR! network request to https://npm.***.com/*** failed and the role of the .npmrc file
- [Solved] hbase Create Sheet Error: ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
- How to Solve Kafka Error: no leader
- k8s kubernetes ingress error: endpoints “default-http-backend“ not found
- calico Error: Calico requires net.ipv4.conf.all.rp_filter to be set to 0 or 1
- Error from server (BadRequest): a container name must be specified for pod
- Error: Please renew the default configurations. [How to Solve]
- Error reporting and resolution of kubernetes installation