Pod
1 2 3 4 5 6 7 8 9 10 11 12 13
| kubectl get po -o wide
kubectl logs xxx
kubectl logs xxx > xxx.log
kubectl describe po xxx
kubectl exec -it xxx bash
|
Deployment
1 2
| kubectl edit deployments xxx -o yaml
|
Service
1 2 3 4 5
| kubectl get svc
kubectl describe svc xxx
|
ConfigMap
1 2 3 4 5 6 7 8
|
kubectl create cm AA --from-file=BB=CC.yml
kubectl get cm AA -o yaml > BB.yaml
|
Ingress