Kubernetes(k8s)-应用部署常用命令
作者:myluzh 分类: Kubernetes 长度:814 阅读:509
kubectl apply -f app.yaml
kubectl get deployment
kubectl get pod -o wide
kubectl describe pod pod-name
kubectl logs pod-name
kubectl exec -it pod-name -- bash
kubectl scale deployment test-k8s --replicas=5
kubectl port-forward pod-name 8090:8080
kubectl rollout history deployment test-k8s
kubectl rollout undo deployment test-k8s
kubectl rollout undo deployment test-k8s --to-revision=2
kubectl delete deployment test-k8s
kubectl get all
kubectl rollout restart deployment test-k8s
kubectl set image deployment test-k8s test-k8s=ccr.ccs.tencentyun.com/k8s-tutorial/test-k8s:v2-with-error --record
kubectl rollout pause deployment test-k8s
kubectl rollout resume deployment test-k8s
kubectl get deployment test-k8s -o yaml >> app2.yaml
kubectl delete all --all
k8s k8s-depolyment k8s命令 kubernetes