QA@IT

Docker (Kubernetes)について

1673 PV

Dockerを勉強中の中でKubernetesを調べておりました。

Googleのコンテナクラスタを作成後、SDKをダウンロードし
以下実行したのですが、※①のコマンドで【kubectl】の取り扱いが無いような
エラーとなっております。

kubectlコマンドが利用できない理由が調べておりますがよくわかっておりません。
勉強不足ですみませんがお手数ですがご教示お願い致します。

# gcloud components update alpha
# gcloud config set project curious-course-XXXXX
# gcloud config set compute/zone asia-east1-b
# gcloud config set container/cluster cluster-1

※①
# gcloud alpha container kubectl version
--------------------------------------------------------------------------
Usage: gcloud alpha container [optional flags] <group | command>
  group may be           clusters | operations
  command may be         get-credentials | get-server-config

*(ALPHA)* Deploy and manage clusters of machines for running containers.

optional flags:
  --account ACCOUNT      Google Cloud Platform user account to use for
                         invocation.
  --format FORMAT        Format for printed output.
  --help                 Display detailed help.
  --log-http LOG_HTTP    Logs all HTTP server requests and responses to stderr.
                         (true/false)
  --project PROJECT_ID   Google Cloud Platform project ID to use for this
                         invocation.
  --quiet, -q            Disable all interactive prompts.
  --trace-token TRACE_TOKEN
                         Token used to route traces of service requests for
                         investigation of issues.
  --user-output-enabled USER_OUTPUT_ENABLED
                         Control whether user intended output is printed to the
                         console.  (true/false)
  --verbosity VERBOSITY  Override the default verbosity for this command.  This
                         must be a standard logging verbosity level: [debug,
                         info, warning, error, critical, none] (Default:
                         [warning]).
  --zone ZONE, -z ZONE   The compute zone (e.g. us-central1-a) for the cluster
  -h                     Print a summary help and exit.

command groups:
  clusters               *(ALPHA)* Deploy and teardown Google Container Engine
                         clusters.
  operations             *(ALPHA)* Get and list operations for Google Container
                         Engine clusters.

commands:
  get-credentials        *(ALPHA)* DEPRECATED: command was moved to 'container
                         clusters get-credentials'.
  get-server-config      *(ALPHA)* Get Container Engine server config.

ERROR: (gcloud.alpha.container) Invalid choice: 'kubectl'.
--------------------------------------------------------------------------
ウォッチ

この質問への回答やコメントをメールでお知らせします。