我的服务定义如下
# 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,如此处所述,但相反,它仍然挂起,并没有改变,如下所示
您能帮助我找到为什么我没有获得外部IP?
2条答案
按热度按时间mepcadol1#
你在哪里运行这个minikube,如果你在本地运行它,外部IP将不会出现,因为external-IP是特定于外部云提供商的。
r1zk6ea12#
我觉得,你应该试试minikube tunnel。启动minikube后,你必须执行以下命令-