Skip to content

Instantly share code, notes, and snippets.

@allbarbos
Created June 19, 2020 23:24
Show Gist options
  • Save allbarbos/c39c850eba6f02366e85885333c630c9 to your computer and use it in GitHub Desktop.
Save allbarbos/c39c850eba6f02366e85885333c630c9 to your computer and use it in GitHub Desktop.
k8s hands on - comandos
kubectl version --client
kubectl config get-contexts
kubectl config use-context minikube
kubectl create -f <yaml>
kubectl get <pod | deployment>
kubectl describe pods
kubectl delete <pod | deployment> <name>
kubectl exec -it <name> sh
kubectl scale -n <namespace> <deployment> <name> --replicas=<quantity>
https://kubernetes.io/pt/docs/reference/kubectl/cheatsheet
minikube start
minikube status
minikube dashboard
minikube stop
minikube service <NAME> --url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment