main.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # Copyright 2021 Dell Inc. or its subsidiaries. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ---
  15. # vars file for kubernetes
  16. # Usage: k8s_installation.yml
  17. common_packages:
  18. - openssl
  19. - bash-completion
  20. - cri-o
  21. - buildah
  22. k8s_packages:
  23. - kubelet-1.21.0
  24. - kubeadm-1.21.0
  25. - kubectl-1.21.0
  26. k8s_conf_dest: /etc/modules-load.d/
  27. crio_conf_dest: /etc/modules-load.d/
  28. k8s_crio_conf_dest: /etc/sysctl.d/
  29. conf_file_mode: 0644
  30. crio_repo1_url: https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_8/devel:kubic:libcontainers:stable.repo
  31. crio_repo1_dest: /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo
  32. crio_repo2_url: https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable:cri-o:1.21/CentOS_8/devel:kubic:libcontainers:stable:cri-o:1.21.repo
  33. crio_repo2_dest: /etc/yum.repos.d/devel:kubic:libcontainers:stable:cri-o:1.21.repo
  34. docker_repo_url: https://download.docker.com/linux/centos/docker-ce.repo
  35. docker_repo_dest: /etc/yum.repos.d/docker-ce.repo
  36. # Usage: k8s_firewalld.yml
  37. k8s_master_ports:
  38. - 6443/tcp
  39. - 2379-2380/tcp
  40. - 10250/tcp
  41. - 10251/tcp
  42. - 10252/tcp
  43. - 10255/tcp
  44. - 8472/udp
  45. - 30000-32767/tcp
  46. calico_udp_ports:
  47. - 4789
  48. calico_tcp_ports:
  49. - 5473
  50. - 179
  51. # Usage: k8s_helm.yml
  52. helm_installer_file_directory: /root/bin
  53. helm_installer_file_directory_mode: 0755
  54. helm_installer_url: https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
  55. helm_installer_file_dest: /root/bin/get_helm.sh
  56. helm_installer_file_mode: 0700
  57. helm_stable_repo_url: https://charts.helm.sh/stable
  58. # Usage: k8s_init.yml
  59. docker_login_fail_msg: "Docker login failed! Please check the credentials and re-execute playbook."
  60. k8s_root_directory: /root/.kube
  61. k8s_root_directory_mode: 0755
  62. k8s_config_src: /etc/kubernetes/admin.conf
  63. k8s_config_dest: /root/.kube/config
  64. k8s_config_file_mode: 0644
  65. k8s_cert_path: /etc/kubernetes/pki/ca.crt
  66. yaml_repo_dir_path: /root/k8s
  67. yaml_repo_dir_mode: 0755
  68. tigera_operator_url: https://docs.projectcalico.org/manifests/tigera-operator.yaml
  69. calico_yml_url: https://docs.projectcalico.org/manifests/custom-resources.yaml
  70. # Usage: k8s_services.yml
  71. metallb_config_file_dest: /root/k8s/metal-config.yaml
  72. metallb_config_updated_file_dest: /root/k8s/metal-config-updated.yaml
  73. metallb_config_file_mode: 0655
  74. metallb_deployment_file_dest: /root/k8s/metallb.yaml
  75. metallb_deployment_file_mode: 0655
  76. metallb_yaml_url: https://raw.githubusercontent.com/google/metallb/v0.8.1/manifests/metallb.yaml
  77. metallb_addresses: |
  78. addresses:
  79. - 192.168.2.150/32
  80. - 192.168.2.151/32
  81. - 192.168.2.151/32
  82. - 192.168.2.152/32
  83. - 192.168.2.153/32
  84. - 192.168.2.154/32
  85. - 192.168.2.155/32
  86. - 192.168.2.156/32
  87. - 192.168.2.157/32
  88. - 192.168.2.158/32
  89. - 192.168.2.159/32
  90. metallb_container_port: "7472"
  91. metallb_run_as_user_port: "65534"
  92. k8s_dashboard_yaml_url: https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml
  93. k8s_dashboard_admin_file_dest: /root/k8s/k8s_dashboard_admin.yaml
  94. k8s_dashboard_admin_file_mode: 0655
  95. nfs_path: /var/nfs_awx