https://pulumi.com logo
#kubernetes
Title
# kubernetes
i

incalculable-animal-125

03/16/2021, 9:55 AM
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

brave-planet-10645

03/16/2021, 10:28 AM
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

incalculable-animal-125

03/16/2021, 9:00 PM
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
4 Views