Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
$ ssh -i ~/.minikube/machines/minikube/id_rsa docker@$(minikube ip) -R 5000:localhost:5000

...

Code Block
$ kubectl get services
NAME             TYPE           CLUSTER-IP       EXTERNAL-IP   PORT(S)          AGE
cloudservice     ClusterIP      10.107.194.8     <none>        80/TCP           1h
...

$ kubectl expose deployment cloudservice --type=LoadBalancer --name=cloud


$ kubectl get services
NAME             TYPE           CLUSTER-IP       EXTERNAL-IP   PORT(S)          AGE
cloud            LoadBalancer   10.105.4.92      <pending>     8080:31500/TCP   23m
cloudservice     ClusterIP      10.107.194.8     <none>        80/TCP           1h
...

Open our exposed service in a browser

Code Block
$ minikube service cloud

References

...