# kubectl操作

# kubectl run

Create and run a particular image in a pod.

kubectl run nginx --image=nginx

# kubectl delete

Delete resources by filenames, stdin, resources and names, or by resources and label selector.

kubectl delete pod nginx

# kubectl describe

Show details of a specific resource or group of resources.

kubectl describe pod nginx

# kubectl get

Display one or many resources.

kubectl get pod nginx -o wide

# kubectl explain

描述资源对象所需要的字段

kubectl explain pod
上次更新: 2/13/2025, 3:29:47 AM