Hello! How to do something like: `kubectl --kubeco...
# kubernetes
i
Hello! How to do something like:
kubectl --kubeconfig ${PATH_TO_KUBECONFIG} --cluster ${CLUSTER_NAME} --token ${TOKEN}
?I'm confused on how to set the
--token
part with Pulumi. From here, seems like it is
id_token
https://kubernetes.io/docs/reference/access-authn-authz/authentication/#openid-connect-tokens
b
How have you set up the cluster? Is it managed (EKS, AKS, GKE) or did you set it up manually or use something like Rancher?
i
I think it is GKE, however, that's the recommended way to execute kubectl from our infra when running on CI. They have populated that id_token as env var for CI runners