Browse Source

Feat: add kubeadm-controlplane.yaml support v1beta4

Currently there is not much difference between the files, if there are more changes in the future,
please use different files to distinguish them (you can use the kubeadm_config_api_version variable)

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

2
roles/kubernetes/control-plane/tasks/kubeadm-secondary.yml

@ -32,7 +32,7 @@
- name: Create kubeadm ControlPlane config - name: Create kubeadm ControlPlane config
template: template:
src: "kubeadm-controlplane.{{ kubeadmConfig_api_version }}.yaml.j2"
src: "kubeadm-controlplane.yaml.j2"
dest: "{{ kube_config_dir }}/kubeadm-controlplane.yaml" dest: "{{ kube_config_dir }}/kubeadm-controlplane.yaml"
mode: "0640" mode: "0640"
backup: true backup: true

roles/kubernetes/control-plane/templates/kubeadm-controlplane.v1beta3.yaml.j2 → roles/kubernetes/control-plane/templates/kubeadm-controlplane.yaml.j2

@ -1,4 +1,4 @@
apiVersion: kubeadm.k8s.io/v1beta3
apiVersion: kubeadm.k8s.io/{{ kubeadm_config_api_version }}
kind: JoinConfiguration kind: JoinConfiguration
discovery: discovery:
{% if kubeadm_use_file_discovery %} {% if kubeadm_use_file_discovery %}
Loading…
Cancel
Save