Is there a way to grab the kubernetes server versi...
# general
m
Is there a way to grab the kubernetes server version of a cluster with the pulumi module?
g
Did you create the cluster with Pulumi?
m
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
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