f:imagePullPolicy: {}
image: k8s.gcr.io/kube-apiserver:v1.19.3
imagePullPolicy: IfNotPresent
image: k8s.gcr.io/kube-apiserver:v1.19.3
imageID: docker://sha256:a301be0cd44bb11162da49b9c55fc5d137f493bdefcf80226378204be403fa41 root@cks-master:~/hash# kubectl exec -it kube-apiserver-cks-master bash -n kube-system kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead. OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"bash\": executable file not found in $PATH": unknown command terminated with exit code 126 root@cks-master:~/hash# docker ps |grep apiserver 72c54882e5c0 a301be0cd44b "kube-apiserver --ad…" 6 weeks ago Up 6 weeks k8s_kube-apiserver_kube-apiserver-cks-master_kube-system_a2aef6235c950d78a8c2a8f52536f35e_0 4045b57cf208 k8s.gcr.io/pause:3.2 "/pause" 6 weeks ago Up 6 weeks k8s_POD_kube-apiserver-cks-master_kube-system_a2aef6235c950d78a8c2a8f52536f35e_0 root@cks-master:~/hash# docker cp 72c54882e5c0:/ container-fs root@cks-master:~/hash# find container-fs/ -name kube-apiserver container-fs/usr/local/bin/kube-apiserver root@cks-master:~/hash# sha512sum container-fs/usr/local/bin/kube-apiserver 49b3a12ee597ea3bf9ece98accb62018ef758e4766ae44e24386838306cf69a2bc5dc7f8c0b728abecb972a4b651271f140bfdf0047e483c1556662cbd5b914a container-fs/usr/local/bin/kube-apiserver root@cks-master:~/hash# sha512sum container-fs/usr/local/bin/kube-apiserver >> co compare container-fs/ root@cks-master:~/hash# sha512sum container-fs/usr/local/bin/kube-apiserver >> compare root@cks-master:~/hash# cat compare 3bda7b83d70fc762759f88a93b760355a6c1023be959d613a3faf113b975200c kubernetes/server/bin/kube-apiserver 49b3a12ee597ea3bf9ece98accb62018ef758e4766ae44e24386838306cf69a2bc5dc7f8c0b728abecb972a4b651271f140bfdf0047e483c1556662cbd5b914a container-fs/usr/local/bin/kube-apiserver root@cks-master:~/hash# rm -rf compare root@cks-master:~/hash# sha512sum kubernetes/server/bin/kube-apiserver 49b3a12ee597ea3bf9ece98accb62018ef758e4766ae44e24386838306cf69a2bc5dc7f8c0b728abecb972a4b651271f140bfdf0047e483c1556662cbd5b914a kubernetes/server/bin/kube-apiserver root@cks-master:~/hash# sha512sum kubernetes/server/bin/kube-apiserver > compare root@cks-master:~/hash# cat compare 49b3a12ee597ea3bf9ece98accb62018ef758e4766ae44e24386838306cf69a2bc5dc7f8c0b728abecb972a4b651271f140bfdf0047e483c1556662cbd5b914a kubernetes/server/bin/kube-apiserver root@cks-master:~/hash# sha512sum container-fs/usr/local/bin/kube-apiserver >> compare root@cks-master:~/hash# cat compare 49b3a12ee597ea3bf9ece98accb62018ef758e4766ae44e24386838306cf69a2bc5dc7f8c0b728abecb972a4b651271f140bfdf0047e483c1556662cbd5b914a kubernetes/server/bin/kube-apiserver 49b3a12ee597ea3bf9ece98accb62018ef758e4766ae44e24386838306cf69a2bc5dc7f8c0b728abecb972a4b651271f140bfdf0047e483c1556662cbd5b914a container-fs/usr/local/bin/kube-apiserver
```
验证通过 OK