如何解决无法 curl 以保护来自本地 minikube 集群的 HTTP
所以,我有 minikube 0.16.0 installed
还有istio 1.7.3
所以我在每次部署时都使用特使边车,按照命令 kubectl label namespace default istio-injection=enabled
现在,谈到这个问题,我无法从任何 pod 内部执行任何 curl
,即使是从 sleep-diag
,我总是收到请求超时消息,但它确实适用于不安全http
例如,在安装 jenkins
时,我尝试针对此 curl
url
没有成功:
bash-5.0# curl -v https://updates.jenkins.io/current/update-center.json
* Trying 92.242.132.16:443...
* TCP_NODELAY set
* connect to 92.242.132.16 port 443 failed: Operation timed out
* Failed to connect to updates.jenkins.io port 443: Operation timed out
* Closing connection 0
curl: (28) Failed to connect to updates.jenkins.io port 443: Operation timed out
但即使我尝试让我们说:
bash-5.0# curl -v https://www.google.com
* Trying 92.242.132.16:443...
* TCP_NODELAY set
* connect to 92.242.132.16 port 443 failed: Operation timed out
* Failed to connect to www.google.com port 443: Operation timed out
* Closing connection 0
curl: (28) Failed to connect to www.google.com port 443: Operation timed out
虽然我可以在本地集群中的任何 pod
之外,对此有任何想法吗?
例如,尝试像这样安装 jenkins
,使用 helm
:
helm install --set Master.ServiceType=ClusterIP jenkins/jenkins --generate-name
显然它会失败,因为我无法从本地集群访问任何 https
,即使指定 NodePort
我也有同样的问题:
helm install --set Master.ServiceType=NodePort jenkins/jenkins --generate-name
有什么想法吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。