From ad0779600aba368134dcf5700ff2fe80ae56d8b6 Mon Sep 17 00:00:00 2001 From: jwklijnsma Date: Fri, 24 Jan 2025 22:47:51 +0100 Subject: [PATCH] fic code --- .gitignore | 1 + .../control-plane/tasks/kubeadm-upgrade.yml | 21 ------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index fa68d5606e9..ecba66138fe 100644 --- a/.gitignore +++ b/.gitignore @@ -120,3 +120,4 @@ tmp.md # Ansible collection files kubernetes_sigs-kubespray*tar.gz ansible_collections +neofetchlog diff --git a/roles/kubernetes/control-plane/tasks/kubeadm-upgrade.yml b/roles/kubernetes/control-plane/tasks/kubeadm-upgrade.yml index d8afd69dcf6..ffbaeff7a02 100644 --- a/roles/kubernetes/control-plane/tasks/kubeadm-upgrade.yml +++ b/roles/kubernetes/control-plane/tasks/kubeadm-upgrade.yml @@ -30,27 +30,6 @@ PATH: "{{ bin_dir }}:{{ ansible_env.PATH }}" notify: Control plane | restart kubelet -- name: Kubeadm | Upgrade other control plane nodes - command: >- - timeout -k 600s 600s - {{ bin_dir }}/kubeadm - upgrade apply -y {{ kube_version }} - --certificate-renewal={{ kubeadm_upgrade_auto_cert_renewal }} - --ignore-preflight-errors={{ kubeadm_ignore_preflight_errors | join(',') }} - --allow-experimental-upgrades - --etcd-upgrade={{ (etcd_deployment_type == "kubeadm") | lower }} - {% if kubeadm_patches | length > 0 %}--patches={{ kubeadm_patches_dir }}{% endif %} - --force - register: kubeadm_upgrade - # Retry is because upload config sometimes fails - retries: 3 - until: kubeadm_upgrade.rc == 0 - when: inventory_hostname != first_kube_control_plane - failed_when: kubeadm_upgrade.rc != 0 and "field is immutable" not in kubeadm_upgrade.stderr - environment: - PATH: "{{ bin_dir }}:{{ ansible_env.PATH }}" - notify: Control plane | restart kubelet - - name: Kubeadm | Remove binding to anonymous user command: "{{ kubectl }} -n kube-public delete rolebinding kubeadm:bootstrap-signer-clusterinfo --ignore-not-found" when: remove_anonymous_access