You should create a separate service account when attaching existing Amazon EKS, Azure AKS, or Google GKE Kubernetes clusters. This service account is needed because the kubeconfig files generated from those clusters are not usable by Kommander out-of-the-box. They call CLI commands, such as aws
or gcloud
, and use locally-obtained authentication tokens. Having a separate service account also allows you to keep access to the cluster specific and isolated to Kommander.
To get started, ensure you have kubectl set up and configured with ClusterAdmin for the cluster you want to connect to Kommander.
-
Create the required service account using the command:
-
Configure the new service account for
cluster-admin
permissions. You can copy and paste this example ensuring that you use the service account created previously. -
Set up the following environment variables with access data needed for producing a new kubeconfig file:
-
Generate a kubeconfig file with these values:
This procedure produces a file in your current working directory called, kommander-cluster-admin-config
. The contents of this file are used in Kommander to attach the cluster.
Before importing this configuration, you can verify that it is functional by running the following command:
Then, you can use this kubeconfig to:
- Attach a cluster with no additional networking restrictions
- Attach a cluster that has networking restrictions