Verify Kubernetes platform binaries

In this example - we will verify kubectl.
Get current kubectl version:

kubectl version -o json | jq -r .clientVersion.gitVersion
Download the sha256 file with checksum:
curl -LO "https://dl.k8s.io/$(kubectl version -o json | jq -r .clientVersion.gitVersion)/bin/linux/amd64/kubectl.sha256"
Verify kubectl binary:
echo "$(<kubectl.sha256) $(which kubectl)" | sha256sum --check
If valid - you should have the output:
/usr/bin/kubectl: OK
With same procedure - binaries like kubeadm, kubelet and others could be verified.