Last active
January 28, 2021 15:09
-
-
Save ikobi12/0564cd560181c982cb09ea2dab27b2ed to your computer and use it in GitHub Desktop.
[Kubernetes] Kubernetes cheat sheet #kubectl #kubernetes
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
# Get commands | |
kubectl get services # List all services in the namespace | |
kubectl get deployment my-dep # List a particular deployment | |
kubectl get replicaset # List all replica sets | |
kubectl get pods # List all pods in the namespace | |
kubectl get pods -o wide # List all pods in the current namespace, with more details | |
kubectl get pod my-pod -o yaml # Get a pod's YAML | |
# Describe commands | |
kubectl describe nodes my-node | |
kubectl describe pods my-pod |
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
minikube start --driver=docker | |
minikube start --driver=docker --alsologtostderr | |
minikube status | |
minikube delete | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment