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
sha512sumto generate the SHA-512 checksum for each binarysha512sum kube-apiserversha512sum kube-controller-managersha512sum kube-proxysha512sum 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-managerchecksum, redirect the output to a file:sha512sum kube-controller-manager > compare - Open the
comparefile in Vim:vim compare - Edit the file to ensure that each line contains only the checksum value.
-
Use
catanduniqto compare the contents of thecomparefile and ensure that there are no duplicate lines indicating a discrepancy:
Cleanup
- Remove the binaries (
kubeletandkube-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.