delete Delete resources by filenames, stdin, resources and names, or by resources and label selector Deploy Commands: rollout Manage the rollout of a resource scale Set a new size for a Deployment, ReplicaSet or Replication Controller autoscale Auto-scale a Deployment, ReplicaSet, or Replication...
delete Delete resources by filenames, stdin, resources and names, or by resources and label selector Deploy Commands: rollout Manage the rollout of a resource scale 为 Deployment, ReplicaSet, Replication Controller 或者 Job 设置一个新的副本数量 autoscale 自动调整一个 Deployment, ReplicaSet, 或者 ...
$delete([-fFILENAME]|TYPE[(NAME|-l label|--all)]) 示例使用 pod.json中指定的资源类型和名称删除pod。 代码语言:javascript 复制 kubectldelete-f./pod.json 根据传入stdin的JSON所指定的类型和名称删除pod。 代码语言:javascript 复制 cat pod.json|kubectldelete-f- 删除名为“baz”和“foo”的Pod和Serv...
delete 根据filenames, stdin, resources and names, or by resources and label selector删除资源 Deploy Commands: rollout Manage the rollout of a resource scale 为 Deployment, ReplicaSet, Replication Controller 或者 Job 设置一个新的副本数量 autoscale 自动调整一个 Deployment, ReplicaSet, 或者 Replicatio...
# kubectl get pods --field-selector=status.phase=Failed --all-namespaces |awk ‘{ system("kubectl delete pod “$2” -n "$1) }’ 3.强制删除Terminating状态的pods # kubectl get pods --all-namespaces |grep Terminating||grep -w “0/1”|awk ‘{ system(“kubectl delete pod “$2” -n...
command:指定要对一个或多个资源执行的操作,例如create、get、describe、delete等。 type:指定资源类型。资源类型不区分大小写,可以指定单数、复数或缩写形式。例如,以下命令输出相同的结果: 代码语言:javascript 复制 kubectl get pod pod1 kubectl get pods pod1 kubectl get po pod1 NAME:指定资源的名称。名称区分...
kubectl delete (-fFILENAME | TYPE [NAME | /NAME | -l label | --all]) [flags] 从文件、标准输入或指定标签选择器、名称、资源选择器或资源中删除资源。 **10.describe 1)语法: kubectl describe (-f FILENAME | TYPE[NAME_PREFIX | /NAME | -l label]) [flags] ...
(Intermediate):explain Documentation of resourcesget Display one or many resourcesedit Edit a resource on the serverdelete Delete resources by filenames, stdin, resources and names, or by resources and label selectorDeploy Commands:rollout Manage the rollout of a resourcescale Set a new size for...
kubectl delete (-f FILENAME | TYPE [NAME | /NAME | -l label | --all]) [flags] 部署相关命令 Deploy Commands: rollout Manage the rollout of a resource 管理资源的上线。有效的资源类型包括:Deployment、 DaemonSet 和 StatefulSet。 kubectl rollout SUBCOMMAND [options] ...
deletekubectl delete [-f filename | type name | -l label] [flags]从配置文件,stdin,资源名称或label selector 删除资源对象 editkubectl edit [-f filename | type name | type/name] [flags]编辑资源对象的属性,在线更新 扩展命令 命令语法说明 ...