kubectl config view
kubectl config use-context xxxxx
kubectl get/describe pods/nodes/services
kubectl cluster-info
kubectl get pods –all-namespaces
kubectl apply -f shopfront-service.yaml
kubectl rolling-update uddplatform –image=shaoxp/upplatform:v2
kubectl rolling-update uddplatform –image=shaoxp/uddplatform:0.2 –image-pull-policy Always
kubectl rolling-update my-nginx –rollback
kubectl exec -it shell-demo – /bin/bash
kubectl exec -it ubuntu – bash -il
kubectl get secret –namespace default angry-butterfly-mysql -o jsonpath=“{.data.mysql-root-password}” | base64 –decode; echo
kubectl port-forward svc/angry-butterfly-mysql 3306