-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
322f533
commit a179a29
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# minikube and kubectl installation | ||
|
||
- kubectl : https://github.com/kubernetes/kubernetes/tags | ||
- minikube : https://github.com/kubernetes/minikube/tags | ||
|
||
# minikube commands | ||
|
||
Start Minikube: | ||
|
||
``` | ||
minikube start | ||
``` | ||
|
||
Display dashboard: | ||
|
||
``` | ||
minikube dashboard | ||
``` | ||
|
||
Access to the service: | ||
|
||
``` | ||
minikube service <service> | ||
``` | ||
|
||
Docker api: | ||
|
||
``` | ||
eval $(minikube docker-env) | ||
``` | ||
|
||
# kubectl commands | ||
|
||
Start the service: | ||
|
||
``` | ||
kubectl apply -f <service> | ||
``` | ||
|
||
List the pod: | ||
|
||
``` | ||
kubectl get pod | ||
``` | ||
|
||
Forward port: | ||
|
||
``` | ||
kubectl port-forward <pod> <port> | ||
``` |