Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding kustomize version shipped with kubectl

I usually use the kustomize supplied with kubectl. I'm wondering if there is a way to find the kustomize version that is shipped with kubectl ?

like image 261
Sibi Avatar asked Apr 25 '26 04:04

Sibi


1 Answers

For earlier version of kubectl, there was no such way of doing it and there was an issue related to it: https://github.com/kubernetes-sigs/kustomize/issues/1424

But it has been fixed recently and it seems starting from 1.24 we are able to get the version by just doing kubectl version:

❯ ./kubectl version --short --client
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Client Version: v1.24.8
Kustomize Version: v4.5.4

For the older clients, you can find that it is documented in the kustomize's README here: https://github.com/kubernetes-sigs/kustomize#kubectl-integration

Kubectl version Kustomize version
< v1.14 n/a
v1.14-v1.20 v2.0.3
v1.21 v4.0.5
v1.22 v4.2.0
like image 121
Sibi Avatar answered Apr 28 '26 15:04

Sibi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!