k8s 执行 ingress yaml 文件报错: error when creating "ingress-myapp.yaml": Internal error occurre
2021/8/27 6:06:02
本文主要是介绍k8s 执行 ingress yaml 文件报错: error when creating "ingress-myapp.yaml": Internal error occurre,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
k8s 执行 ingress yaml 文件报错:错误如下:
[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
查看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
删除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]# # 恢复正常 [root@k8s-master01 baremetal]# kubectl apply -f ingress-test.yaml ingress.networking.k8s.io/ngress-test created
这篇关于k8s 执行 ingress yaml 文件报错: error when creating "ingress-myapp.yaml": Internal error occurre的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-05基于Kubernetes的自定义AWS云平台搭建指南
- 2024-11-05基于Kubernetes Gateway API的现代流量管理方案
- 2024-11-05在Kubernetes上部署你的第一个应用:Nginx服务器
- 2024-11-05利用拓扑感知路由控制Kubernetes中的流量
- 2024-11-05Kubernetes中的层次命名空间:更灵活的资源管理方案
- 2024-11-055分钟上手 Kubernetes:精简实用的 Kubectl 命令速查宝典!
- 2024-10-30K8s 容器的定向调度与亲和性
- 2024-10-28云原生周刊:K8s未来三大发展方向 丨2024.10.28
- 2024-10-25亚马逊弹性Kubernetes服务(EKS)实战:轻松搭建Kubernetes平台
- 2024-10-22KubeSphere 最佳实战:Kubernetes 部署集群模式 Nacos 实战指南