我的目标是在Kubernetes集群上设置一个简单的Istio。我能够做到这一点,使用码头桌面在我的笔记本电脑。
下一步,考虑在我公司内部数据中心的CentOS VM上托管的Kubernetes集群上执行此操作。我有一个简单的Kubernetes集群设置,并且能够在那里部署一些示例服务。然后我设置了Istio并使用istio-injection=enabled.创建了一个新的命名空间。当我试图在新的命名空间中部署一个服务时,我会得到以下错误。
> Error creating: Internal error occurred: failed calling webhook
> "sidecar-injector.istio.io": Post
> https://istio-sidecar-injector.istio-system.svc:443/inject?timeout=30s:
> dial tcp 10.109.98.58:443: connect: no route to host我不知道我做错了什么,或者我是否错过了任何配置。
任何帮助或指示都将不胜感激。
下面是kubectl get pods --all-namespaces的输出
NAMESPACE NAME READY STATUS RESTARTS AGE
istio-system grafana-6c8f45499-hv4tq 1/1 Running 0 10d
istio-system istio-citadel-db8578cc4-bsdcj 1/1 Running 0 10d
istio-system istio-egressgateway-f9c7b6669-h9tvh 0/1 Running 0 10d
istio-system istio-galley-786ff7f89b-42snm 1/1 Running 0 10d
istio-system istio-ingressgateway-5654f8bf65-6bg7n 0/1 Running 0 10d
istio-system istio-pilot-c565b478c-j4f8c 0/1 Running 0 10d
istio-system istio-policy-7d5f97776c-n4c96 0/1 CrashLoopBackOff 5031 10d
istio-system istio-sidecar-injector-c7ff9dd99-wh9nf 1/1 Running 0 14h
istio-system istio-telemetry-55dd49cf85-f26hp 0/1 CrashLoopBackOff 5117 10d
istio-system istio-tracing-78548677bc-zqz5j 1/1 Running 0 10d
istio-system kiali-fb5f485fb-ll6bz 1/1 Running 0 10d
istio-system prometheus-685585888b-rwl2r 1/1 Running 0 10d
kube-system coredns-5d4dd4b4db-cj927 1/1 Running 0 11d
kube-system coredns-5d4dd4b4db-kwcqf 1/1 Running 0 11d
kube-system etcd-master-node 1/1 Running 0 11d
kube-system kube-apiserver-master-node 1/1 Running 0 11d
kube-system kube-controller-manager-master-node 1/1 Running 0 11d
kube-system kube-proxy-49qdq 1/1 Running 0 11d
kube-system kube-proxy-h2p7c 1/1 Running 1 10d
kube-system kube-proxy-ncwnx 1/1 Running 1 10d
kube-system kube-scheduler-master-node 1/1 Running 0 11d
kube-system weave-net-67r6x 2/2 Running 0 11d
kube-system weave-net-kxvbc 2/2 Running 2 10d
kube-system weave-net-spv99 2/2 Running 3 10d执行kubectl --v=9 apply -f https://raw.githubusercontent.com/istio/istio/release-1.4/samples/bookinfo/networking/bookinfo-gateway.yaml的日志是可用的这里 (它太大了,无法连接到post)。
谢谢。
PS:我之前松散地使用了服务这个词。
-Anoop
发布于 2020-02-20 00:53:25
请检查您的api-服务器和侧注入器之间的连接。我以前也遇到过这个问题,港口在东道一级是不开放的。因此,您可以检查节点端口是否已打开,以及是否存在建立连接所需打开的任何网络策略。如果收到任何要求,请检查侧喷射器吊舱记录。
https://stackoverflow.com/questions/60311316
复制相似问题