我的服务定义如下
# SOURCE: https://cloud.google.com/kubernetes-engine/docs/tutorials/guestbook
apiVersion: v1
kind: Service
metadata:
name: frontend
labels:
app: guestbook
tier: frontend
spec:
# if your cluster supports it, uncomment the following to automatically create
# an external load-balanced IP for the frontend service.
# type: LoadBalancer
type: LoadBalancer
#type: NodePort
ports:
# the port that this service should serve on
- targetPort: 80
port: 80
selector:
app: guestbook
tier: frontend
应用后
我期望获得外部 IP,如所解释的 here但相反,它仍然处于待定状态并且不会发生变化,如下所示 您能帮我找出为什么我没有获得 EXTERNAL-IP 吗?
最佳答案
我认为,你应该尝试 minikube tunnel 。启动minikube后,你必须执行这个命令 -
$ minikube tunnel
minikube tunnel runs as a process, creating a network route on the host to the service CIDR of the cluster using the cluster’s IP address as a gateway.
关于kubernetes - minikube - EXTERNAL-IP 仍然<待定>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71723194/