kubernetes-retired/kube-deploy

EXTERNAL-IP is always none when using NodePort

ganchandrasekaran opened this issue · 1 comments

For instance following the tutorial on: https://kubernetes.io/docs/tutorials/kubernetes-basics/expose/expose-intro/

When I run
kubectl get services
Output:

NAME                  TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)          AGE
kubernetes            ClusterIP   10.96.0.1        <none>        443/TCP          15m
kubernetes-bootcamp   NodePort    10.108.199.215   <none>        8080:31348/TCP   10m

Note: I ran the minikube behind the Poxy and using Cert by following: https://github.com/kubernetes/minikube/blob/master/docs/http_proxy.md



Name:               kubernetes-bootcamp-6bf84cb898-7lwq4
Namespace:          default
Priority:           0
PriorityClassName:  <none>
Node:               minikube/10.0.2.15
Start Time:         Tue, 26 Mar 2019 10:31:21 +0900
Labels:             pod-template-hash=6bf84cb898
                    run=kubernetes-bootcamp
Annotations:        <none>
Status:             Running
IP:                 172.17.0.4
Controlled By:      ReplicaSet/kubernetes-bootcamp-6bf84cb898
Containers:
  kubernetes-bootcamp:
    Container ID:   docker://a2cb13a0bdc422dbb22df33f7d74469f8f6a9187f2d34bfd6076b74b0eac02f4
    Image:          gcr.io/google-samples/kubernetes-bootcamp:v1
    Image ID:       docker-pullable://gcr.io/google-samples/kubernetes-bootcamp@sha256:0d6b8ee63bb57c5f5b6156f446b3bc3b3c143d233037f3a2f00e279c8fcc64af
    Port:           8080/TCP
    Host Port:      0/TCP
    State:          Running
      Started:      Tue, 26 Mar 2019 10:31:31 +0900
    Ready:          True
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-2z54m (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             True
  ContainersReady   True
  PodScheduled      True
Volumes:
  default-token-2z54m:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  default-token-2z54m
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  <none>
Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                 node.kubernetes.io/unreachable:NoExecute for 300s
Events:
  Type    Reason     Age    From               Message
  ----    ------     ----   ----               -------
  Normal  Scheduled  9m55s  default-scheduler  Successfully assigned default/kubernetes-bootcamp-6bf84cb898-7lwq4 to minikube
  Normal  Pulling    9m55s  kubelet, minikube  pulling image "gcr.io/google-samples/kubernetes-bootcamp:v1"
  Normal  Pulled     9m46s  kubelet, minikube  Successfully pulled image "gcr.io/google-samples/kubernetes-bootcamp:v1"
  Normal  Created    9m45s  kubelet, minikube  Created container
  Normal  Started    9m45s  kubelet, minikube  Started container

Can you ask this in https://github.com/kubernetes/minikube or (better) #minikube on slack? minikube isn't in this repo.