Kubernetes Cheetset
Viewing and finding resources
Pods
Get List Pods
kubectl get pods -n <namespace>
Get Top Pods
kubectl top pods -n <namespace>
Describe Pods
kubectl describe pods <namepods>
Service
Restart Service
kubectl rollout restart deployment <nameservice> -n <namespace>
Get List Service
kubectl get svc -n <namespace>
Creating Objects
Create Resource(s)
kubectl apply -f ./my.yaml
Create From Multiple Files
kubectl apply -f ./my1.yaml -f ./my2.yaml
Create Resource(s) In All Manifest Files In Dir
kubectl apply -f ./dir
Create Resource(s) From Url
kubectl apply -f <https://git.io/vPieo>
Start a Single Instance of Nginx
kubectl create deployment nginx --image=nginx #
Reference
k8s-commands
k8s-cheetset