setup_k8s_worker_node.sh 518 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env bash
  2. # Copyright IBM Corp, All Rights Reserved.
  3. #
  4. # SPDX-License-Identifier: Apache-2.0
  5. #
  6. # This script will help setup a Kubernetes cluster at servers, then the cluster can be used as a worker node.
  7. # Detecting whether can import the header file to render colorful cli output
  8. if [ -f ../header.sh ]; then
  9. source ../header.sh
  10. elif [ -f scripts/header.sh ]; then
  11. source scripts/header.sh
  12. else
  13. echo_r() {
  14. echo "$@"
  15. }
  16. echo_g() {
  17. echo "$@"
  18. }
  19. echo_b() {
  20. echo "$@"
  21. }
  22. fi
  23. ARCH=x86_64
  24. # TODO: