kubernetes 명령

1747 단어 kubernetes
k8s 일반 명령
#             
kubectl get all 
#           
kubectl get all -A
#    pod
kubectl get pod
#    pod
kubectl get pods -A
#pod  
kubectl get pod -o wide  -n     
#    
kubectl get service
#     
kubectl get nodes
#    
kubectl get cs
#    
kubectl delete     
#     
kubectl get deployment
#     
kubectl api-resources
#   nginx
kubectl run mynginx --image=nginx 
kubectl create deployment nginx --image=nginx 
#         ,      
kubectl edit deployment     
#       
kubectl run mynginx001 --image=nginx --dry-run -o yaml
#       
kubectl get ns
#          hello-space     
kubectl create ns hello-space
#     nginx-XXXXXX Pod   
kubectl describe pod nginx-XXXXXX	
# nginx     
kubectl describe deploy nginx
#     
kubectl logs pod  
#     nginx-pod-xxxxxx Pod   bash docker   
kubectl exec -it nginx-pod-xxxxxx /bin/bash

지속적인 업데이트

좋은 웹페이지 즐겨찾기