【发布时间】:2020-07-19 07:20:21
【问题描述】:
我正在尝试在 minicube kubernetes 集群中设置 istio1.5.1,我正在按照 Knative 的官方文档设置 istio 而不进行边车注入。我正面临 istio 入口网关服务的问题,该服务将入口网关服务的外部 ip 显示为 . 我已经浏览了此处发布的其他答案以及许多其他论坛,但没有一个对我有帮助。
在 driver=none 的情况下使用 minikube v1.9.1 掌舵 v2.16.5 kubectl v1.18.0
我得到以下输出: kubectl 获取 pods --namespace istio-system
NAME READY STATUS RESTARTS AGE
istio-ingressgateway-b599cccd9-qnp5l 1/1 Running 0 60s
istio-pilot-b67ccb85-mfllc 1/1 Running 0 60s
kubectl get svc --namespace istio-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S)
AGE
istio-ingressgateway LoadBalancer 10.104.37.189 ***<pending>*** 15020:30168/TCP,80:31380/TCP,443:31390/TCP,31400:31400/TCP,15029:32576/TCP,15030:31080/TCP,15031:31767/TCP,15032:31812/TCP,15443:30660/TCP 74s
istio-pilot ClusterIP 10.100.224.212 <none> 15010/TCP,15011/TCP,8080/TCP,15014/TCP 74s
在描述入口 pod 时,我收到警告 Readiness probe failed: HTTP probe failed with statuscode: 503
谁能帮我解决这个问题。 谢谢!
使用尝试答案的输出进行更新:
kubectl apply -f metallb.yaml
podsecuritypolicy.policy/controller created
podsecuritypolicy.policy/speaker created
serviceaccount/controller created
serviceaccount/speaker created
clusterrole.rbac.authorization.k8s.io/metallb-system:controller created
clusterrole.rbac.authorization.k8s.io/metallb-system:speaker created
role.rbac.authorization.k8s.io/config-watcher created
role.rbac.authorization.k8s.io/pod-lister created
clusterrolebinding.rbac.authorization.k8s.io/metallb-system:controller created
clusterrolebinding.rbac.authorization.k8s.io/metallb-system:speaker created
rolebinding.rbac.authorization.k8s.io/config-watcher created
rolebinding.rbac.authorization.k8s.io/pod-lister created
daemonset.apps/speaker created
deployment.apps/controller created
$ kubectl 获取 pods -n metallb-system
No resources found in metallb-system namespace.
应用 yaml 文件后,它显示所有内容都已创建,但我没有在 metallb-system 命名空间下部署任何 pod。
【问题讨论】:
-
Minikube 不会为您提供外部 IP(因为它无法部署负载均衡器)。查看this 和this question 的答案。
-
感谢您的回复!我在文档中看到了这一点,所以我尝试将端口类型从负载均衡器更改为节点端口,它成功了,但是在描述 pod 时,我仍然收到准备就绪探测警告。这会让我的进一步步骤失败吗?我现在可以开始设置 Knative 了吗?
标签: kubernetes kubernetes-ingress minikube istio