Page cover

cldkctl config

The config command retrieves the Kubernetes configuration file (kubeconfig) used for authentication and cluster access within your Cloudeka project. By default, the configuration file is printed directly to the console, allowing you to view or copy it manually.

Usage

cldkctl config [flags]

Steps

Follow the steps below to run and view the result of this command:

  1. Identify your Project ID from the project list (if required for your environment).

  2. Run the config command to retrieve the Kubernetes configuration file:

./cldkctl config
  1. Use the --project flag to specify a project ID:

./cldkctl config --project
  1. To save the kubeconfig file to a specific path, use the --output flag:

./cldkctl config --output ~/Downloads/kubeconfig.yaml
  1. The command will either print the kubeconfig content in your terminal or save it to the provided file path.

Flags

This command supports global flags. Refer to the Global Flags section for details

Flag
Description

-h, --help

Help for the config command.

-o, --output string

Specify a file path to save the kubeconfig file instead of printing it to the console.

-p, --project string

Specify the project ID to retrieve the kubeconfig file for.

Last updated