Note: This script is only intended to work with a kubernetes cluster setup following instructions from this repository. It is not a generic script that works for all kubernetes clusters. Feel free to send in PRs with improvements.
This script was developed to assist the verification of certificates for each Kubernetes component as part of building the cluster. This script may be executed as soon as you have completed the Lab steps up to Bootstrapping the Kubernetes Worker Nodes. The script is named as cert_verify.sh
and it is available at /home/vagrant
directory of master-1 , master-2 and worker-1 nodes. If it's not already available there copy the script to the nodes from here.
It is important that the script execution needs to be done by following commands after logging into the respective virtual machines [ whether it is master-1 / master-2 / worker-1 ] via SSH.
cd /home/vagrant
bash cert_verify.sh
Following are the successful output of script execution under different nodes,
Any misconfiguration in certificates will be reported in red.