As an alternative to managing Kyma with a graphical user interface, Kyma dashboard, you can also use the Kubernetes command-line tool, kubectl.
You have a Kyma instance created in your subaccount of the SAP BTP cockpit.
To start using kubectl, follow these steps:
-
Install kubectl oidc-login. Follow the original instruction from the project repository. Use the relevant commands for macOS, Linux, or Windows users.
On Windows, we recommend using the release binaries to install the kubectl oidc-login plugin. The installation of the kubectl oidc-login plugin using Chocolatey and Krew could cause issues.
-
In the SAP BTP cockpit, in your subaccount Overview, go to the Kyma Environment section, and click on the KubeconfigURL link to download
kubeconfig.yaml. -
In the terminal, export the kubeconfig file.
-
On macOS, run:
export KUBECONFIG={KUBECONFIG_FILE_PATH} -
On Windows (PowerShell), run:
$ENV:KUBECONFIG="{KUBECONFIG_FILE_PATH}"
-
Now you can manage your Kyma instance using kubectl.
If you authenticate in the Kyma environment with an Identity Provider using OpenID Connect, the downloaded
kubeconfig.yamlcan be used indefinitely to re-authenticate.
Related Information