From the course: Kubernetes Network and Cluster Hardening by Pearson
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Verify binary checksum - Kubernetes Tutorial
From the course: Kubernetes Network and Cluster Hardening by Pearson
Verify binary checksum
So now that we know how to download the various files we're looking for, as well as the ability to be able to get the checksum, let's just do a quick check to make sure that one of the files we download that we can validate. So here we're going to go ahead and just use a wget command. And I'm going to use wget, and then we're going to go to dl.k8s.io, we're going to pull down version 1.29.4, and we're going to get the kube-api-server-arm64 version. Let's go ahead and download that. Now we should have it. So yep, there's the kube-api-server, but in addition I also need to pull down the SHA-256 file. Let's go ahead and pull that down. So now we should have both of them, and then at this point it's really just as simple as being able to enter a command that'll do that check. So I have one already here that I'm gonna go ahead and just copy over. We'll talk about it really quick. Let me go ahead and clear this. This one is going to use the echo command to be able to take that SHA-256 file,…