gcloud beta anthos create-login-config - generates a login configuration file
gcloud beta anthos create-login-config --kubeconfig=KUBECONFIG [--merge-from=MERGE_FROM] [--output=OUTPUT] [GCLOUD_WIDE_FLAG ...]
(BETA) Generates the file containing configuration information developers will use to authenticate to an AWS Anthos cluster.
To generate the default login config file (kubectl-anthos-config.yaml) using the kubeconfig file 'my-kube-config.yaml':
$ gcloud beta anthos create-login-config \ --kubeconfig 'my-kube-config.yaml'
To generate a config named 'myconfg.yaml' the --kubeconfig file 'my-kube-config.yaml':
$ gcloud beta anthos create-login-config \ --kubeconfig 'my-kube-config.yaml' --output 'myconfg.yaml'
- --kubeconfig=KUBECONFIG
Specifies the input kubeconfig file to access user cluster for login configuration data.
- --merge-from=MERGE_FROM
Specifies the file path of an existing login configuration file to merge with.
- --output=OUTPUT
Destination to write login configuration file. Defaults to "kubectl-anthos-config.yaml".
These flags are available to all commands: --access-token-file, --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
This command is currently in beta and might change without notice. These variants are also available:
$ gcloud anthos create-login-config
$ gcloud alpha anthos create-login-config