2018-05-09 16:19:11 +02:00
|
|
|
---
|
|
|
|
kubernetes_packages:
|
|
|
|
- name: kubelet
|
|
|
|
state: present
|
|
|
|
- name: kubectl
|
|
|
|
state: present
|
2018-09-28 05:46:20 +02:00
|
|
|
- name: kubeadm
|
|
|
|
state: present
|
2018-05-09 16:19:11 +02:00
|
|
|
- name: kubernetes-cni
|
|
|
|
state: present
|
|
|
|
|
2022-09-16 17:29:58 +02:00
|
|
|
kubernetes_version: '1.25'
|
|
|
|
kubernetes_version_rhel_package: '1.25.1'
|
2018-09-28 06:19:56 +02:00
|
|
|
|
2022-09-14 22:46:44 +02:00
|
|
|
kubernetes_role: control_plane
|
2018-05-15 05:27:26 +02:00
|
|
|
|
2021-03-25 14:59:44 +01:00
|
|
|
# This is deprecated. Please use kubernetes_config_kubelet_configuration instead.
|
2018-05-10 00:04:46 +02:00
|
|
|
kubernetes_kubelet_extra_args: ""
|
2021-03-25 14:59:44 +01:00
|
|
|
|
2018-09-28 09:56:37 +02:00
|
|
|
kubernetes_kubeadm_init_extra_opts: ""
|
2019-12-15 02:50:57 +01:00
|
|
|
kubernetes_join_command_extra_opts: ""
|
2022-09-14 22:46:44 +02:00
|
|
|
kubernetes_allow_pods_on_control_plane: true
|
2019-06-19 20:48:23 +02:00
|
|
|
kubernetes_pod_network:
|
2019-12-15 02:57:24 +01:00
|
|
|
# Flannel CNI.
|
|
|
|
cni: 'flannel'
|
|
|
|
cidr: '10.244.0.0/16'
|
|
|
|
# Calico CNI.
|
|
|
|
# cni: 'calico'
|
|
|
|
# cidr: '192.168.0.0/16'
|
|
|
|
|
2021-03-25 14:59:44 +01:00
|
|
|
kubernetes_kubeadm_kubelet_config_file_path: '/etc/kubernetes/kubeadm-kubelet-config.yaml'
|
|
|
|
kubernetes_config_kubelet_configuration:
|
2022-09-14 21:42:00 +02:00
|
|
|
cgroupDriver: "systemd"
|
2021-03-25 14:59:44 +01:00
|
|
|
|
|
|
|
kubernetes_config_init_configuration:
|
|
|
|
localAPIEndpoint:
|
|
|
|
advertiseAddress: "{{ kubernetes_apiserver_advertise_address | default(ansible_default_ipv4.address, true) }}"
|
|
|
|
# if you use the next lines, remove the command line argument below
|
|
|
|
# nodeRegistration:
|
|
|
|
# ignorePreflightErrors:
|
|
|
|
# - all
|
|
|
|
|
|
|
|
kubernetes_config_cluster_configuration:
|
|
|
|
networking:
|
|
|
|
podSubnet: "{{ kubernetes_pod_network.cidr }}"
|
|
|
|
kubernetesVersion: "{{ kubernetes_version_kubeadm }}"
|
|
|
|
|
2021-08-12 16:24:42 +02:00
|
|
|
kubernetes_config_kube_proxy_configuration: {}
|
|
|
|
|
2018-05-15 05:27:26 +02:00
|
|
|
kubernetes_apiserver_advertise_address: ''
|
2018-09-28 06:19:56 +02:00
|
|
|
kubernetes_version_kubeadm: 'stable-{{ kubernetes_version }}'
|
2018-05-10 16:37:53 +02:00
|
|
|
kubernetes_ignore_preflight_errors: 'all'
|
2018-05-09 18:15:30 +02:00
|
|
|
|
2024-03-06 21:24:35 +01:00
|
|
|
kubernetes_apt_release_channel: "stable"
|
|
|
|
kubernetes_apt_repository: "https://pkgs.k8s.io/core:/{{ kubernetes_apt_release_channel }}:/v{{ kubernetes_version }}/deb/"
|
2018-05-09 16:19:11 +02:00
|
|
|
|
2024-03-06 05:08:09 +01:00
|
|
|
kubernetes_yum_base_url: "https://pkgs.k8s.io/core:/stable:/v{{ kubernetes_version }}/rpm/"
|
|
|
|
kubernetes_yum_gpg_key: "https://pkgs.k8s.io/core:/stable:/v{{ kubernetes_version }}/rpm/repodata/repomd.xml.key"
|
2021-08-23 10:11:06 +02:00
|
|
|
kubernetes_yum_gpg_check: true
|
|
|
|
kubernetes_yum_repo_gpg_check: true
|
|
|
|
|
2022-10-26 16:49:47 +02:00
|
|
|
# Flannel config file.
|
|
|
|
kubernetes_flannel_manifest_file: https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml
|
2019-06-19 20:48:23 +02:00
|
|
|
|
2022-10-26 16:49:47 +02:00
|
|
|
# Calico config file.
|
2022-04-19 16:28:20 +02:00
|
|
|
kubernetes_calico_manifest_file: https://projectcalico.docs.tigera.io/manifests/calico.yaml
|