Appearance
metaplay get kubeconfig ENVIRONMENT [AUTH_PROVIDER] [flags]
Get the Kubernetes KubeConfig for the target environment
Appearance
Get the Kubernetes KubeConfig for the target environment
metaplay get kubeconfig ENVIRONMENT [AUTH_PROVIDER] [flags] Get the Kubernetes KubeConfig for accessing the target environment's cluster.
The KubeConfig can be generated with two different credential handling types:
If no type is specified, it defaults to:
The KubeConfig can be written to a file using the --output flag, or printed to stdout if not specified.
The default auth provider is 'metaplay'. If you have multiple auth providers configured in your 'metaplay-project.yaml', you can specify the name of the provider you want to use with the argument AUTH_PROVIDER.
Expected arguments:
# Get KubeConfig for environment nimbly with dynamic credentials
metaplay get kubeconfig nimbly --type=dynamic
# Get KubeConfig with static credentials and save to a file
metaplay get kubeconfig nimbly --type=static --output=kubeconfig.yaml
# Get KubeConfig with default credentials type (based on user type)
metaplay get kubeconfig nimbly
# Get KubeConfig using a custom auth provider
metaplay get kubeconfig nimbly my-auth-provider--output <string>: Path of the output file where to write kubeconfig (written to stdout if not specified)--type <string>: Type of credentials handling in kubeconfig, static or dynamic--color <string>: Should the output be colored (yes/no/auto)? [env: METAPLAYCLI_COLOR] (default: auto)--project <string>: Path to the to project directory (where metaplay-project.yaml is located)--skip-version-check: Skip the check for a new CLI version being available--verbose: Enable verbose logging, useful for troubleshooting [env: METAPLAYCLI_VERBOSE]