1

My Service definition is as follows

# 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 

After applying it

enter image description here

I was expecting to get External IP as explained here but instead, it remains pending and doesn't change as shown below enter image description here Can you please help me find why I'm not getting EXTERNAL-IP?

desertnaut
  • 57,590
  • 26
  • 140
  • 166
funtyper
  • 165
  • 1
  • 9

2 Answers2

1

I think, you should try minikube tunnel. After starting the minikube, you have to execute this command -

$ 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.

desertnaut
  • 57,590
  • 26
  • 140
  • 166
0

where are you running this minikube, if you are running it on your local, external ip will not appear, as external-ip is specific to external cloud providers.

manoj
  • 142
  • 8