Get Kubernetes API version with kubectl get — raw

Jbn1233
Nov 28, 2023

--

just run:

$ cat /etc/redhat-release 
Red Hat Enterprise Linux release 9.3 (Plow)

$ kubectl get --raw /version | jq .
{
"major": "1",
"minor": "27",
"gitVersion": "v1.27.7",
"gitCommit": "07a61d861519c45ef5c89bc22dda289328f29343",
"gitTreeState": "clean",
"buildDate": "2023-10-18T11:33:23Z",
"goVersion": "go1.20.10",
"compiler": "gc",
"platform": "linux/amd64"
}

that is all

--

--

Jbn1233
Jbn1233

Written by Jbn1233

Very short and simple notes for CKA/SRE and may not works on your environment | jbn1233@gmail.com | Bangkok, Thailand |

No responses yet