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-12-20/kubernetes 1.32版本更新解读:新特性和变化一目了然
- 2024-12-19拒绝 Helm? 如何在 K8s 上部署 KRaft 模式 Kafka 集群?
- 2024-12-16云原生周刊:Kubernetes v1.32 正式发布
- 2024-12-13Kubernetes上运行Minecraft:打造开发者平台的例子
- 2024-12-12深入 Kubernetes 的健康奥秘:探针(Probe)究竟有多强?
- 2024-12-10运维实战:K8s 上的 Doris 高可用集群最佳实践
- 2024-12-022024年最好用的十大Kubernetes工具
- 2024-12-02OPA守门人:Kubernetes集群策略编写指南
- 2024-11-26云原生周刊:K8s 严重漏洞
- 2024-11-15在Kubernetes (k8s) 中搭建三台 Nginx 服务器怎么实现?-icode9专业技术文章分享