Multi-Cluster Management
Multi-cluster management is the entrance to register clusters into Karpor, enabling search and insight capabilities across a large number of clusters.
Register Clusterâ
- Click the Cluster Management Tab.
- Click the Register Cluster button.
- Add the cluster name. The cluster name must be unique and CANNOT be altered once created.
- Upload the cluster's kubeconfig file. One with read permission is sufficient.
- Click the Verify and Submit button.
- Once verified, the cluster will be added under the Cluster Management page
Register eks Clusterâ
If you want to register an EKS cluster, you need to perform some additional operations on the kubeconfig:
- Export the kubeconfig for the EKS cluster. For example, you can obtain the kubeconfig for the specified cluster using the following AWS command:
aws eks --region <YOUR REGION> update-kubeconfig --name <YOUR CLUSTER NAME> --kubeconfig=<OUTPUT FILENAME>
- Add the fields
env
,interactiveMode
, andprovideClusterInfo
to theusers/exec
section of the exported kubeconfig file. You can refer to the following kubeconfig structure:
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: CA
server: SERVER
name: CLUSTER
contexts:
- context:
cluster: CLUSTER
user: USER
name: CONTEXT
current-context: CONTEXT
kind: Config
preferences: {}
users:
- name: USER
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
args:
- --region
- ap-southeast-1
- eks
- get-token
- --cluster-name
- mycluster3
- --output
- json
command: aws
### The following fields need to be added to the kubeconfig.
env:
- name: AWS_ACCESS_KEY_ID
value: <YOUR AWS_ACCESS_KEY_ID>
- name: AWS_SECRET_ACCESS_KEY
value: <YOUR AWS_SECRET_ACCESS_KEY>
- name: AWS_DEFAULT_REGION
value: <AWS_DEFAULT_REGION>
- name: AWS_DEFAULT_OUTPUT
value: json
interactiveMode: IfAvailable
provideClusterInfo: false
- Use the modified kubeconfig in Register Cluster.
Edit Clusterâ
The Edit button allows for modifications to the Display Name and Description, thus altering how the cluster's name and description appear on the Dashboard.
Rotate Certificateâ
When the kubeconfig expires, you can update the certificate by clicking Rotate Certificate.
Remove Clusterâ
The delete button facilitates the removal of a registered cluster.