Browse Source

Refactor: use kubeadm_config_api_version variable

I added the kubeadm_config_api_version variable in the previous commit,
and remove kubeadm api version condition.

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
pull/11674/head
ChengHao Yang 2 weeks ago
parent
commit
5929935a19
Failed to extract signature
1 changed files with 1 additions and 5 deletions
  1. 6
      roles/kubernetes/control-plane/tasks/kubeadm-setup.yml

6
roles/kubernetes/control-plane/tasks/kubeadm-setup.yml

@ -88,13 +88,9 @@
kubeadm_config_api_fqdn: "{{ apiserver_loadbalancer_domain_name | default('lb-apiserver.kubernetes.local') }}"
when: loadbalancer_apiserver is defined
- name: Set kubeadm api version to v1beta3
set_fact:
kubeadmConfig_api_version: v1beta3
- name: Kubeadm | Create kubeadm config
template:
src: "kubeadm-config.{{ kubeadmConfig_api_version }}.yaml.j2"
src: "kubeadm-config.{{ kubeadm_config_api_version }}.yaml.j2"
dest: "{{ kube_config_dir }}/kubeadm-config.yaml"
mode: "0640"

Loading…
Cancel
Save