Add more later.
- Get (all | deployment | pod | service) running on the cluster.
    
kubectl get all kbuectl get deploy kubectl get po kubectl get svc - View Config
    
kubectl config view - Scale Replicaset
    
kubectl scale deployment hello-node --replicas=0 -n=kube-system - Rollout Update / Rollback
    
kubectl set image deployment/hello-node hello-node=hello-node:v4 kubectl rollout undo deployments hello-node - Tail -f log of a pod
    
kubectl logs -f <pod name> - execute a command in a pod.
    
kubectl exec <pod name> — sh -c ‘ls-al' kubectl exec -it <POD 이름> <명령> kubectl exec -it jenkins-5566cc5fdc-9cgsp hostname kubectl exec -it jenkins-5566cc5fdc-9cgsp -- /bin/bash - Create configMap
    
kubectl create configmap <configmap name> —from-file=<file name> - Create Secret 만들기
    
kubectl create secret generic <secret name> —from-literal=<Content> kubectl create secret generic <secret name> —from-literal=password=changeme