main.yml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. # Copyright 2022 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_leap.yml
  17. k8s_repo_leap: https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
  18. rpm_pkg_leap: https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
  19. yum_key_leap: https://packages.cloud.google.com/yum/doc/yum-key.gpg
  20. gpg_pubkey_leap: "rpm -q gpg-pubkey --qf '%{name}-%{version}-%{release} --> %{summary}'"
  21. docker_repo_url_leap: https://download.docker.com/linux/sles/docker-ce.repo
  22. docker_repo_dest_leap: /etc/YaST2/docker-ce.repo
  23. kubeadm_version: kubeadm-1.21.0-0.x86_64
  24. kubelet_version: kubelet-1.21.0-0.x86_64
  25. kubectl_version: kubectl-1.21.0-0.x86_64
  26. os_supported_leap: "leap"
  27. os_supported_leap_version: "15.3"
  28. min_retries: 3
  29. max_retries: 10
  30. min_delay: 10
  31. wait_time: 30
  32. crio_repo_leap: "https://download.opensuse.org/repositories/devel:kubic/15.3/devel:kubic.repo"
  33. k8s_package_names:
  34. - kubeadm
  35. - kubelet
  36. - kubectl
  37. version_kubectl: "v1.21.0"
  38. # Usage: k8s_installation.yml
  39. common_packages:
  40. - openssl
  41. - bash-completion
  42. - cri-o
  43. - buildah
  44. k8s_packages:
  45. - kubelet-1.21.0
  46. - kubeadm-1.21.0
  47. - kubectl-1.21.0
  48. k8s_conf_dest: /etc/modules-load.d/
  49. crio_conf_dest: /etc/modules-load.d/
  50. k8s_crio_conf_dest: /etc/sysctl.d/
  51. conf_file_mode: 0644
  52. crio_repo1_url: https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_8/devel:kubic:libcontainers:stable.repo
  53. crio_repo1_dest: /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo
  54. 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
  55. crio_repo2_dest: /etc/yum.repos.d/devel:kubic:libcontainers:stable:cri-o:1.21.repo
  56. docker_repo_url: https://download.docker.com/linux/centos/docker-ce.repo
  57. docker_repo_dest: /etc/yum.repos.d/docker-ce.repo
  58. # Usage: k8s_firewalld.yml
  59. k8s_master_ports:
  60. - 6443/tcp
  61. - 2379-2380/tcp
  62. - 10250/tcp
  63. - 10251/tcp
  64. - 10252/tcp
  65. - 10255/tcp
  66. - 8472/udp
  67. - 30000-32767/tcp
  68. calico_udp_ports:
  69. - 4789
  70. calico_tcp_ports:
  71. - 5473
  72. - 179
  73. # Usage: k8s_helm.yml
  74. helm_installer_file_directory: /root/bin
  75. helm_installer_file_directory_mode: 0755
  76. helm_installer_url: https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
  77. helm_installer_file_dest: /root/bin/get_helm.sh
  78. helm_installer_file_mode: 0700
  79. helm_stable_repo_url: https://charts.helm.sh/stable
  80. # Usage: k8s_init.yml
  81. docker_login_fail_msg: "Docker login failed! Please check the credentials and re-execute playbook."
  82. k8s_root_directory: /root/.kube
  83. k8s_root_directory_mode: 0755
  84. k8s_config_src: /etc/kubernetes/admin.conf
  85. k8s_config_dest: /root/.kube/config
  86. k8s_config_file_mode: 0644
  87. k8s_cert_path: /etc/kubernetes/pki/ca.crt
  88. yaml_repo_dir_path: /root/k8s
  89. yaml_repo_dir_mode: 0755
  90. tigera_operator_url: https://docs.projectcalico.org/manifests/tigera-operator.yaml
  91. calico_yml_url: https://docs.projectcalico.org/manifests/custom-resources.yaml
  92. # Usage: k8s_services.yml
  93. metallb_config_file_dest: /root/k8s/metal-config.yaml
  94. metallb_config_updated_file_dest: /root/k8s/metal-config-updated.yaml
  95. metallb_config_file_mode: 0655
  96. metallb_deployment_file_dest: /root/k8s/metallb.yaml
  97. metallb_deployment_file_mode: 0655
  98. metallb_yaml_url: https://raw.githubusercontent.com/google/metallb/v0.8.1/manifests/metallb.yaml
  99. metallb_addresses: |
  100. addresses:
  101. - 192.168.2.150/32
  102. - 192.168.2.151/32
  103. - 192.168.2.151/32
  104. - 192.168.2.152/32
  105. - 192.168.2.153/32
  106. - 192.168.2.154/32
  107. - 192.168.2.155/32
  108. - 192.168.2.156/32
  109. - 192.168.2.157/32
  110. - 192.168.2.158/32
  111. - 192.168.2.159/32
  112. metallb_container_port: "7472"
  113. metallb_run_as_user_port: "65534"
  114. k8s_dashboard_yaml_url: https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml
  115. k8s_dashboard_admin_file_dest: /root/k8s/k8s_dashboard_admin.yaml
  116. k8s_dashboard_admin_file_mode: 0655
  117. nfs_path: /var/nfs_awx