k8s executes the ingress yaml file and reports an error: the error is as follows:
[root@k8s-master01 baremetal]# kubectl apply -f ingress-test.yaml
Error from server (InternalError): error when creating "ingress-myapp.yaml": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": Post "https://ingress-nginx-controller-admission.ingress-nginx.svc:443/networking/v1/ingresses?timeout=10s": dial tcp 10.0.0.129:443: connect: invalid argument
View validatingwebhookconfiguration
[root@k8s-master01 baremetal]# kubectl get ValidatingWebhookConfiguration
NAME WEBHOOKS AGE
ingress-nginx-admission 1 43m
network.kubesphere.io 1 3d5h
resourcesquotas.quota.kubesphere.io 1 3d5h
users.iam.kubesphere.io 1 3d5h
Delete ingress-nginx-admission
[root@k8s-master01 baremetal]# kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission
validatingwebhookconfiguration.admissionregistration.k8s.io "ingress-nginx-admission" deleted
[root@k8s-master01 baremetal]#
# normal
[root@k8s-master01 baremetal]# kubectl apply -f ingress-test.yaml
ingress.networking.k8s.io/ngress-test created
Similar Posts:
- Kubernetes: 413 request entity too large
- [Solved] k8s ingress-nginx Error: 413 Request Entity Too Large
- 413 errors are reported in the service exposed by ingress
- [Solved] Nginx Log Error: open() “/opt/Nginx/nginx/nginx.pid” failed (2: No such file or directory)
- [Solved] kubeadm join 192.168.50.66:6443 –token 0109we.c3a3ofn0y0lmp0w9 –discovery-token-ca-cert-hash sha256:262f5eefdbeba51e6875cba5ed6e34061ad679f8a21f6e295d9fbd5ef05757e4
- K8s version 1.20x nfs dynamic storage error: persistentvolume-controller waiting for a volume to be created, either by external provisioner “qgg-nfs-storage” or manually created by system administrator
- Error in configuring static IP in Ubuntu 18.04
- The newly deployed k8s cluster of the virtual machine reports an error when executing kubectl logs and exec
- [Solved] docker nginx localhost connection refused connect() failed (111: Connection refused)while connecting to upstream
- [Solved] Anaconda navigator is stuck on the loading applications page when it is started.