Skip to content

Commit

Permalink
Merge pull request #11674 from tico88612/feat/kubeadm-v1beta4
Browse files Browse the repository at this point in the history
Feat: kubeadm v1beta4 support
  • Loading branch information
k8s-ci-robot authored Nov 8, 2024
2 parents aa76e39 + bf01b73 commit 91a77e4
Show file tree
Hide file tree
Showing 8 changed files with 556 additions and 15 deletions.
4 changes: 2 additions & 2 deletions roles/download/templates/kubeadm-images.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: kubeadm.k8s.io/v1beta3
apiVersion: kubeadm.k8s.io/{{ kubeadm_config_api_version }}
kind: InitConfiguration
nodeRegistration:
criSocket: {{ cri_socket }}
---
apiVersion: kubeadm.k8s.io/v1beta3
apiVersion: kubeadm.k8s.io/{{ kubeadm_config_api_version }}
kind: ClusterConfiguration
imageRepository: {{ kube_image_repo }}
kubernetesVersion: {{ kube_version }}
Expand Down
2 changes: 1 addition & 1 deletion roles/kubernetes/control-plane/tasks/kubeadm-secondary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

- name: Create kubeadm ControlPlane config
template:
src: "kubeadm-controlplane.{{ kubeadmConfig_api_version }}.yaml.j2"
src: "kubeadm-controlplane.yaml.j2"
dest: "{{ kube_config_dir }}/kubeadm-controlplane.yaml"
mode: "0640"
backup: true
Expand Down
6 changes: 1 addition & 5 deletions roles/kubernetes/control-plane/tasks/kubeadm-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Loading

0 comments on commit 91a77e4

Please sign in to comment.