check kubernetes version code example
Example 1: check kubectl version
#Just type in following to check kubectl version:
kubectl version
#Yeah, that easy!
Example 2: kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl