<p>Kubernetes question: I seem to not be able to access my service from my local machine (pods are running on minikube), when I run the command
kubectl <code>describe pod pod-id</code> I see these two lines but I don't know if they have anything to do with not being able to access the deployment:</p>

<pre><code>Port:           8888/TCP
Host Port:      0/TCP
</code></pre>

<p>But when I run</p>

<pre><code>kubectl get services
</code></pre>

<p>I see no External-IP</p>

<pre><code>NAME         TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)          AGE
ci-master    NodePort    10.103.13.96   &lt;none&gt;        8888:31388/TCP   1m
</code></pre>

<p>Here's my <code>service.yaml</code> file:</p>

<pre><code>apiVersion: v1
kind: Service
metadata:
  name: ci-master
  labels:
    app: ci
    tier: fullstack
    role: master
spec:
  type: NodePort
  ports:
  - port: 8888
    targetPort: 8888
  selector:
    app: ci
    role: master
    tier: fullstack
</code></pre>

<p>And the part that I think should be relevant in my <code>deployment.yaml</code>:</p>

<pre><code>spec:
  template:
    spec:
      containers:
      - name: ci
        image: rand/image-one:latest
        ports:
        - containerPort: 8888
</code></pre>

<p>When I try to access the service with <code>minikube service ci-master</code> I get this message indefinitely:
<code>Waiting, endpoint for service is not ready yet...</code></p>

<p>The service is serving, when I try <code>kubectl describe pod pod-id</code> I see this line at the bottom:</p>

<pre><code>  Type    Reason                 Age   From               Message
  Normal  Started                24m   kubelet, minikube  Started container
</code></pre>

<p>What am I missing?</p>

<p>What I was missing was the Service Type, if I want something accessible from the external world, I had to pick <code>LoadBalancer</code>.</p>

<p>So this simple change fixed it: </p>

<pre><code>spec:
  type: LoadBalancer
  ports:
  - port: 8888
    targetPort: 8888
</code></pre>

<p>Now I finally have:</p>

<pre><code>NAME         TYPE           CLUSTER-IP     EXTERNAL-IP     PORT(S)        AGE
ci-master    LoadBalancer   10.15.243.32   35.211.12.22   80:32463/TCP   1m
</code></pre>
