mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-08-08 20:02:42 +03:00
case interactive - cert verify
This commit is contained in:
21
vagrant/cert_verify.sh
Normal file → Executable file
21
vagrant/cert_verify.sh
Normal file → Executable file
@@ -704,6 +704,16 @@ check_cert_worker_1_kp()
|
||||
|
||||
# END OF Function - Worker-1 node #
|
||||
|
||||
echo -e "This script will validate the certificates in master as well as worker-1 nodes. Before proceeding, make sure you ssh into the respective node for certificate validation\n"
|
||||
echo -e "1. Verify certification in Master Node\n"
|
||||
echo -e "2. Verify certification in Worker-1 Node\n"
|
||||
echo -e "Please select either the option 1 or 2\n"
|
||||
read value
|
||||
|
||||
case $value in
|
||||
|
||||
1)
|
||||
echo -e "The selected option is $value, proceeding the certificate verification of Master node"
|
||||
|
||||
### MASTER NODES ###
|
||||
|
||||
@@ -731,6 +741,10 @@ check_systemd_ks
|
||||
|
||||
### END OF MASTER NODES ###
|
||||
|
||||
;;
|
||||
|
||||
2)
|
||||
echo -e "The selected option is $value, proceeding the certificate verification of Worker-1 node"
|
||||
|
||||
### WORKER-1 NODE ###
|
||||
|
||||
@@ -740,3 +754,10 @@ check_cert_worker_1_kubelet
|
||||
check_cert_worker_1_kp
|
||||
|
||||
### END OF WORKER-1 NODE ###
|
||||
;;
|
||||
|
||||
*)
|
||||
echo -e "Exiting.... Please select the valid option either 1 or 2\n"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
Reference in New Issue
Block a user