Skip to content

Commit

Permalink
Minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
yannisf committed Aug 15, 2023
1 parent 0d55fbe commit c2a15a8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions linux/kubernetes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,24 @@ The easiest way to start minikube on Linux is through the _docker_ driver:
- https://kubernetes.io/docs/tasks/tools/install-minikube/[Install `minikube`]
- https://kubernetes.io/docs/setup/minikube/[Run `minikube` locally]


.Get the exposed service (nodeport)

$ minikube service hello-minikube --url
http://192.168.49.2:31153


.Get the exposed service (loadbalander)

$ minikube tunnel

Then find the external ip of the service you are interest in:

$ kubectl get services diceware-service -o jsonpath='{.status.loadBalancer.ingress[].ip}'


and access the service through the exposed port eg `http://<ip_found_above>:8080/api`

.Use minikube docker registry

Minikube by default cannot see local docker repository. So to create pods from localy created docker images you will have to create them once more under the minikube registry:
Expand All @@ -106,3 +124,7 @@ Minikube by default cannot see local docker repository. So to create pods from l
.Dashboard

$ minikube open dashboard

.Resources
* https://minikube.sigs.k8s.io/docs/start/
* https://minikube.sigs.k8s.io/docs/handbook/accessing/#loadbalancer-access

0 comments on commit c2a15a8

Please sign in to comment.