Last active
September 23, 2019 14:35
-
-
Save xwlee/94d5ae152d3c9553f98ae2c3ffffb49f to your computer and use it in GitHub Desktop.
Revisions
-
xwlee revised this gist
Sep 23, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -71,7 +71,7 @@ minikube ip kubectl scale deployment/web --replicas 2 ``` # Create a template by creating a deployment and output the definition as yaml ```shell kubectl create deployment web --image=nginx --dry-run -o yaml -
xwlee revised this gist
Sep 23, 2019 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -75,4 +75,10 @@ kubectl scale deployment/web --replicas 2 ```shell kubectl create deployment web --image=nginx --dry-run -o yaml ``` # Create a deployment using config file ```shell kubectl apply -f <config>.yaml ``` -
xwlee revised this gist
Sep 23, 2019 . No changes.There are no files selected for viewing
-
xwlee revised this gist
Sep 23, 2019 . 1 changed file with 12 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -63,4 +63,16 @@ kubectl get svc ```shell minikube ip ``` ## Scale the application ```shell kubectl scale deployment/web --replicas 2 ``` # Create template by creating a deployment and output the definition as yaml ```shell kubectl create deployment web --image=nginx --dry-run -o yaml ``` -
xwlee revised this gist
Sep 23, 2019 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -57,4 +57,10 @@ kubectl expose deployment/web --port 80 --type NodePort ```shell kubectl get svc ``` ## Get the IP of the minikube cluster ```shell minikube ip ``` -
xwlee revised this gist
Sep 23, 2019 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -51,4 +51,10 @@ kubectl get pods -o wide ```shell kubectl expose deployment/web --port 80 --type NodePort ``` ## Get the application exposed port ```shell kubectl get svc ``` -
xwlee revised this gist
Sep 23, 2019 . 1 changed file with 13 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -38,4 +38,17 @@ kubectl get events ```shell kubectl get deploy ``` ## Get the application pods info ```shell kubectl get pods kubectl get pods -o wide ``` ## Expose the application through service ```shell kubectl expose deployment/web --port 80 --type NodePort ``` -
xwlee revised this gist
Sep 23, 2019 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -28,8 +28,14 @@ kubectl describe nodes kubectl create deployment web --image nginx ``` ## Check what happen under the hood by querying the events ```shell kubectl get events ``` ## Check the deployment status ```shell kubectl get deploy ``` -
xwlee revised this gist
Sep 23, 2019 . 1 changed file with 11 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,29 +1,35 @@ # Install minikube ```shell brew install minikube ``` # Create minikube cluster ```shell minikube start ``` # Get all nodes ```shell kubectl get nodes ``` # Describe all nodes ```shell kubectl describe nodes ``` # Deploy a simple application on minikube ```shell kubectl create deployment web --image nginx ``` ## Check the deployment status by querying the events ```shell kubectl get events ``` -
xwlee renamed this gist
Sep 23, 2019 . 1 changed file with 10 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,23 +1,29 @@ # Install minikube ```bash brew install minikube ``` # Create minikube cluster ```bash minikube start ``` # Get all nodes ```bash kubectl get nodes ``` # Describe all nodes ```bash kubectl describe nodes ``` # Deploy a simple application on minikube ```bash kubectl create deployment web --image nginx ``` -
xwlee revised this gist
Sep 23, 2019 . 1 changed file with 12 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,4 +8,16 @@ brew install minikube ``` minikube start ``` # Get all nodes ``` kubectl get nodes ``` # Describe all nodes ``` kubectl describe nodes ``` -
xwlee renamed this gist
Sep 23, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
xwlee created this gist
Sep 23, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ # Install minikube ``` brew install minikube ``` # Create minikube cluster ``` minikube start ```