main.yml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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
  39. - 2379-2380
  40. - 10250
  41. - 10251
  42. - 10252
  43. calico_udp_ports:
  44. - 4789
  45. calico_tcp_ports:
  46. - 5473
  47. - 179
  48. # Usage: k8s_helm.yml
  49. helm_installer_file_directory: /root/bin
  50. helm_installer_file_directory_mode: 0755
  51. helm_installer_url: https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
  52. helm_installer_file_dest: /root/bin/get_helm.sh
  53. helm_installer_file_mode: 0700
  54. helm_stable_repo_url: https://charts.helm.sh/stable
  55. # Usage: k8s_init.yml
  56. docker_login_fail_msg: "Docker login failed! Please check the credentials and re-execute playbook."
  57. k8s_root_directory: /root/.kube
  58. k8s_root_directory_mode: 0755
  59. k8s_config_src: /etc/kubernetes/admin.conf
  60. k8s_config_dest: /root/.kube/config
  61. k8s_config_file_mode: 0644
  62. k8s_cert_path: /etc/kubernetes/pki/ca.crt
  63. yaml_repo_dir_path: /root/k8s
  64. yaml_repo_dir_mode: 0755
  65. tigera_operator_url: https://docs.projectcalico.org/manifests/tigera-operator.yaml
  66. calico_yml_url: https://docs.projectcalico.org/manifests/custom-resources.yaml
  67. # Usage: k8s_services.yml
  68. metallb_config_file_dest: /root/k8s/metal-config.yaml
  69. metallb_config_updated_file_dest: /root/k8s/metal-config-updated.yaml
  70. metallb_config_file_mode: 0655
  71. metallb_deployment_file_dest: /root/k8s/metallb.yaml
  72. metallb_deployment_file_mode: 0655
  73. metallb_yaml_url: https://raw.githubusercontent.com/google/metallb/v0.8.1/manifests/metallb.yaml
  74. metallb_addresses: |
  75. addresses:
  76. - 192.168.2.150/32
  77. - 192.168.2.151/32
  78. - 192.168.2.151/32
  79. - 192.168.2.152/32
  80. - 192.168.2.153/32
  81. - 192.168.2.154/32
  82. - 192.168.2.155/32
  83. - 192.168.2.156/32
  84. - 192.168.2.157/32
  85. - 192.168.2.158/32
  86. - 192.168.2.159/32
  87. metallb_container_port: "7472"
  88. metallb_run_as_user_port: "65534"
  89. k8s_dashboard_yaml_url: https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml
  90. k8s_dashboard_admin_file_dest: /root/k8s/k8s_dashboard_admin.yaml
  91. k8s_dashboard_admin_file_mode: 0655
  92. nfs_path: /var/nfs_awx