Skip to content

Instantly share code, notes, and snippets.

@akhr
Last active August 4, 2019 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akhr/383a0b1dd8b028a5a81edc2c4154f815 to your computer and use it in GitHub Desktop.
Save akhr/383a0b1dd8b028a5a81edc2c4154f815 to your computer and use it in GitHub Desktop.
11814 minikube version
11815 minikube start &
11816 cat .minikube
11817 cat .minikube/config/config.json
11821 minikube status
11824 kubectl version -o yaml
11825 kubectl config current-context
11826 kubectl config get-contexts
11827 kubectl config use-context minikube
11830 kubectl get nodes -o yaml
11832 kubectl get nodes minikube
11833 kubectl get nodes -o wide
11837 kubectl describe nodes minikube
11844 docker images
11845 docker image prune -f
11847 docker images
11848 docker build -t ak:0.0.1 .
11851 docker images | grep ak
11858 eval $(minikube docker-env)
11859 minikube docker-env
11860 eval $(minikube docker-env)
11864 docker images | grep ak
11865 docker build -t ak:0.0.1 .
11868 kubectl create namespace baz
11870 kubectl create -f somepod.yaml --namespace baz
11873 kubectl delete -f somepod.yaml --namespace baz
11874 kubectl get pods -n baz
11875 kubectl get deployment -n baz
11876 kubectl get service -n baz
11877 kubectl create -f somepod.yaml --namespace baz
11878 kubectl get pods -n baz
11884 minikube dashboard
11885 kubectl exec -it --namespace baz bazpod /bin/bash
11886 kubectl describe pods/bazpod --namespace baz
11888 kubectl create -f somedeployment.yaml --namespace baz
11889 kubectl get pods -n baz
11890 kubectl get deployment -n baz
11893 kubectl get pods -n baz
11894 kubectl get pods bazdeployment-fb788d778-682st -n baz -o yaml > configs/deployPod.yaml
11895 kubectl get pods bazpod -n baz -o yaml > configs/directPod.yaml
11902 kubectl get --namespace baz replicasets bazdeployment-fb788d778 -o yaml
11903 kubectl get --namespace baz deployment bazdeployment -o yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment