使用Rancher创建kubernetes集群失败

问题描述 投票:0回答:2

我正在尝试使用 Rancher 在 VMWare vSphere 中创建 Kubernetes 集群。

Rancher:使用docker安装 安装选项(Docker 安装/Helm Chart):Docker Install

当我尝试创建集群时,我遇到了这个错误:

Internal error occurred: failed calling webhook "rancher.cattle.io.secrets": failed to call webhook: Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/mutation/secrets?timeout=15s": no endpoints available for service "rancher-webhook"

如何解决?

rancher
2个回答
1
投票

创建命名空间时遇到同样的错误:

# kubectl create namespace minio-operator
Error from server (InternalError): Internal error occurred: failed calling webhook "rancher.cattle.io.namespaces.create-non-kubesystem": failed to call webhook: Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation/namespaces?timeout=10s": no endpoints available for service "rancher-webhook"

这对我有用:

# kubectl delete validatingwebhookconfigurations rancher.cattle.io
# kubectl delete pod -n cattle-system -l app=rancher-webhook
# kubectl delete secret -n cattle-system cattle-webhook-tls
# kubectl create namespace minio-operator
namespace/minio-operator created

0
投票

这对我有用:

kubectl delete mutatingwebhookconfigurations rancher.cattle.io 
kubectl delete validatingwebhookconfigurations rancher.cattle.io
kubectl -n cattle-system delete service webhook-service
© www.soinside.com 2019 - 2024. All rights reserved.