成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

Kubernetes命令行工具 (kubectl)

云計算 云原生
kubectl 是 Kubernetes 集群的命令行工具,通過 kubectl 能夠對集群本身進行管理,并能 夠在集群上進行容器化應用的安裝部署。

1、概述

kubectl 是 Kubernetes 集群的命令行工具,通過 kubectl 能夠對集群本身進行管理,并能 夠在集群上進行容器化應用的安裝部署。

2、語法

使用以下語法從終端窗口運行 kubectl 命令:

kubectl [command] [TYPE] [NAME] [flags]

其中 command、TYPE、NAME 和 flags 分別是:

  • command:指定要對一個或多個資源執行的操作,例如 create、get、describe、delete。
  • TYPE:指定資源類型。資源類型不區分大小寫, 可以指定單數、復數或縮寫形式。
  • NAME:指定資源的名稱。名稱區分大小寫。 如果省略名稱,則顯示所有資源的詳細信息。例如:kubectl get pods。
  • flags: 指定可選的參數。例如,可以使用 -s 或 --server 參數指定 Kubernetes API 服務器的地址和端口。

3、kubectl help 獲取更多信息

[root@k8s-master ~]# kubectl --help
kubectl controls the Kubernetes cluster manager.

 Find more information at: https://kubernetes.io/docs/reference/kubectl/

Basic Commands (Beginner):
  create          Create a resource from a file or from stdin
  expose          Take a replication controller, service, deployment or pod and expose it as a new Kubernetes service
  run             在集群上運行特定鏡像
  set             為對象設置指定特性

Basic Commands (Intermediate):
  explain         Get documentation for a resource
  get             顯示一個或多個資源
  edit            編輯服務器上的資源
  delete          Delete resources by file names, 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, replica set, or replication controller
  autoscale       Auto-scale a deployment, replica set, stateful set, or replication controller

Cluster Management Commands:
  certificate     修改證書資源。
  cluster-info    Display cluster information
  top             Display resource (CPU/memory) usage
  cordon          標記節點為不可調度
  uncordon        標記節點為可調度
  drain           清空節點以準備維護
  taint           更新一個或者多個節點上的污點

Troubleshooting and Debugging Commands:
  describe        顯示特定資源或資源組的詳細信息
  logs            打印 Pod 中容器的日志
  attach          掛接到一個運行中的容器
  exec            在某個容器中執行一個命令
  port-forward    將一個或多個本地端口轉發到某個 Pod
  proxy           運行一個指向 Kubernetes API 服務器的代理
  cp              Copy files and directories to and from containers
  auth            Inspect authorization
  debug           Create debugging sessions for troubleshooting workloads and nodes

Advanced Commands:
  diff            Diff the live version against a would-be applied version
  apply           Apply a configuration to a resource by file name or stdin
  patch           Update fields of a resource
  replace         Replace a resource by file name or stdin
  wait            Experimental: Wait for a specific condition on one or many resources
  kustomize       Build a kustomization target from a directory or URL.

Settings Commands:
  label           更新某資源上的標簽
  annotate        更新一個資源的注解
  completion      Output shell completion code for the specified shell (bash, zsh, fish, or powershell)

Other Commands:
  alpha           Commands for features in alpha
  api-resources   Print the supported API resources on the server
  api-versions    Print the supported API versions on the server, in the form of "group/version"
  config          修改 kubeconfig 文件
  plugin          Provides utilities for interacting with plugins
  version         輸出客戶端和服務端的版本信息

Usage:
  kubectl [flags] [options]

Use "kubectl <command> --help" for more information about a given command.
Use "kubectl options" for a list of global command-line options (applies to all commands).
[root@k8s-master ~]#

4、kubectl子命令使用分類

(1)基礎命令

(2)部署和集群管理命令

(3)故障和調試命令

(4)其他命令

責任編輯:姜華 來源: 今日頭條
相關推薦

2020-12-10 16:16:08

工具代碼開發

2020-12-11 06:44:16

命令行工具開發

2010-11-24 17:12:17

MySQL命令行

2013-12-09 14:29:13

OpenStack命令行工具API

2011-01-18 19:11:26

Postfix命令行

2023-11-02 10:24:30

KubectlKubernetes

2013-11-15 09:43:15

JDK工具

2018-05-04 09:15:35

PythonPlumbum命令行

2019-08-27 10:32:01

Linux操作系統Windows

2013-05-21 14:58:08

系統監視glances開源

2017-06-15 10:32:56

OracleDBV命令行工具

2018-04-03 13:50:27

Linux容器命令行工具

2014-08-25 16:23:24

2021-01-05 06:12:38

Tcpdump工具網絡

2018-07-05 08:30:54

Python命令行工具shell

2021-01-27 11:53:08

工具Go 開發

2021-08-25 10:55:43

Linux命令工具

2010-02-04 15:17:48

Linux wget

2014-02-12 13:30:16

Linux命令行終端工具

2010-06-07 14:45:37

Linux下載工具
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 91不卡| 免费毛片网| 亚洲日韩中文字幕一区 | 久久久精品网 | 中国一级大毛片 | 久草在线 | 在线免费中文字幕 | 超碰97人人人人人蜜桃 | 日本午夜免费福利视频 | 欧美 日韩 国产 成人 在线 | 国产乱码精品一品二品 | 成人av观看 | 久久精品国产99国产精品 | 欧美精品一区二区在线观看 | 五月天激情综合网 | 日本黄色高清视频 | 中国av在线免费观看 | 日韩有码在线播放 | a级毛片免费高清视频 | 成人精品视频免费 | 国产在线一区二区 | 99精品99久久久久久宅男 | 午夜丰满少妇一级毛片 | 精品视频一区二区三区 | 欧美激情 一区 | 免费视频一区二区 | 欧美专区在线 | 亚洲成人免费电影 | 亚洲国产激情 | 五月天婷婷综合 | 成人在线一区二区三区 | heyzo在线 | 久久婷婷色 | 欧美成年黄网站色视频 | 免费在线观看一区二区 | 偷派自拍| 欧美日韩成人一区二区 | 国产美女在线免费观看 | 亚洲福利| 精品乱码一区二区三四区视频 | 免费同性女女aaa免费网站 |