-
Hi! What would be the easyest way to authenticate the k8s python client with kwok cluster api for several clusters?
so this works, but it requires to get crt and key file every time for each new cluster,
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
We can export kwokctl get kubeconfig --name cluster > kubeconfig then use the exported from kubernetes import client, config
config.load_kube_config("kubeconfig") |
Beta Was this translation helpful? Give feedback.
-
The SA will generate when the cluster is created with |
Beta Was this translation helpful? Give feedback.
Create a service account and associated token: