Verify Kubernetes Plantform Binaries
Directory Check and Listing
- Change directory to the location where the binaries are stored.
- List the files in the directory using
ls
SHA-512 Sum Generation
-
Use
sha512sum
to generate the SHA-512 checksum for each binarysha512sum kube-apiserver
sha512sum kube-controller-manager
sha512sum kube-proxy
sha512sum kubelet
Verification
- Compare the generated checksums with the provided ones to ensure they match.
- Identify any discrepancies.
Detailed Comparison for Verification
- For a closer look at the
kube-controller-manager
checksum, redirect the output to a file:sha512sum kube-controller-manager > compare
- Open the
compare
file in Vim:vim compare
- Edit the file to ensure that each line contains only the checksum value.
-
Use
cat
anduniq
to compare the contents of thecompare
file and ensure that there are no duplicate lines indicating a discrepancy:
Cleanup
- Remove the binaries (
kubelet
andkube-controller-manager
) that showed discrepancies in the checksums:rm kubelet kube-controller-manager
This process ensures that the binaries in the Kubernetes cluster match the expected checksums, helping to verify their integrity and authenticity.