【发布时间】:2019-02-16 18:21:21
【问题描述】:
发生了什么: 我一直遵循以下准则:https://kubernetes.io/docs/setup/minikube/ 并且在尝试 curl 应用程序时遇到“连接被拒绝”问题。这是我做的步骤
~~> minikube status
minikube: Stopped
cluster:
kubectl:
~~> minikube start
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
Getting VM IP address...
Moving files into cluster...
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Starting cluster components...
Kubectl is now configured to use the cluster.
Loading cached images from config file.
~~> kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.10 --port=9500
deployment.apps/hello-minikube created
~~> kubectl expose deployment hello-minikube --type=NodePort
service/hello-minikube exposed
~~> kubectl get pod
NAME READY STATUS RESTARTS AGE
hello-minikube-79577c5997-24gt8 1/1 Running 0 39s
~~> curl $(minikube service hello-minikube --url)
curl: (7) Failed to connect to 192.168.99.100 port 31779: Connection refused
我预计会发生什么: 当我卷曲 pod 时,它应该会给出正确的回复(如在快速入门中:https://kubernetes.io/docs/setup/minikube/)
minikube 日志:https://docs.google.com/document/d/1o2-ebiZTsoCzQNSn_rQSkcuVzOJABmwT2KKzGoUQNiQ/edit
【问题讨论】:
-
是的,我可以重现此错误。现在正在调查原因……
-
我喜欢你这篇文章的结构。不错!
标签: docker deployment kubernetes minikube