名前
gdcloud clusters get-credentials - Kubernetes クラスタの認証情報を取得します。
概要
gdcloud clusters get-credentials CLUSTER_NAME [flags]
説明
特定の Kubernetes クラスタの kubectl 呼び出しを有効にするために、適切な認証情報とエンドポイント情報で kubeconfig ファイルを更新します。
EXAMPLES
To switch to working on a specific Kubernetes cluster named 'sample', run:
gdcloud clusters get-credentials sample
To switch to working on a standard cluster named 'sample' in project 'foo', run:
gdcloud clusters get-credentials sample --standard --project=foo
オプションのフラグ
--standard If set, the standard cluster type is used.
--zone string Zone to use for this invocation. To preset the zone flag for all commands that require it, run: "gdcloud config set core/zone ZONE". The zone flag is available only in multi-zone environments.
GDCLOUD ワイドフラグ
これらのフラグは、すべてのコマンドで使用できます: --configuration、--format、--help、--project、--quiet。
詳細については、gdcloud CLI リファレンスの概要ページをご覧ください。