https://pulumi.com logo
#general
Title
# general
m

millions-judge-24978

07/23/2019, 6:30 PM
Is there a way to grab the kubernetes server version of a cluster with the pulumi module?
g

gorgeous-egg-16927

07/23/2019, 7:09 PM
Did you create the cluster with Pulumi?
m

millions-judge-24978

07/23/2019, 7:12 PM
I did, I didn’t think of grabbing it off the EKS resource since I just have the
kubeconfig
info in another stack, but I could export the version as well too I suppose
Although I have a use case where I would not know the origin as well and would want to grab it via API if possible, similar to
kubectl version
g

gorgeous-egg-16927

07/23/2019, 7:19 PM
We don’t support that directly in the SDK, but you should be able to get it either with the js k8s client, or by shelling out to kubectl
If that’s something you’d find generally useful, feel free to open a feature request