Files
website/content/zh/docs/tasks/tools/included/install-kubectl-gcloud.md
T

915 B

title, description, headless
title description headless
通过 gcloud 安装 kubectl 用各个特定操作系统标签页中包含的 gcloud 指令片段安装 kubectl。 true

kubectl 可以作为 Google Cloud SDK 的一部分被安装。

  1. 安装 Google Cloud SDK

  2. 运行安装 kubectl 的命令:

    gcloud components install kubectl
    
  3. 验证一下,确保安装的是最新的版本:

    kubectl version --client