forked from k-space/kube
Upgrade to Kubernetes 1.30
This commit is contained in:
parent
e0cf532e42
commit
6b24ede7ac
@ -30,7 +30,8 @@
|
|||||||
- name: Reconfigure Kubernetes nodes
|
- name: Reconfigure Kubernetes nodes
|
||||||
hosts: kubernetes
|
hosts: kubernetes
|
||||||
vars:
|
vars:
|
||||||
KUBERNETES_VERSION: v1.29.7
|
KUBERNETES_VERSION: v1.30.3
|
||||||
|
IP: "{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}"
|
||||||
tasks:
|
tasks:
|
||||||
- name: Remove APT packages
|
- name: Remove APT packages
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
@ -156,14 +157,15 @@
|
|||||||
ansible.builtin.shell: "sysctl --system"
|
ansible.builtin.shell: "sysctl --system"
|
||||||
when: sysctl.changed
|
when: sysctl.changed
|
||||||
|
|
||||||
- name: Reconfigure Kubernetes master nodes
|
- name: Reconfigure kube-apiserver to use Passmower OIDC endpoint
|
||||||
hosts: masters
|
|
||||||
vars:
|
|
||||||
KUBERNETES_VERSION: v1.28.12
|
|
||||||
IP: "{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}"
|
|
||||||
tasks:
|
|
||||||
- name: Configure kube-apiserver manifest on masters
|
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: kube-apiserver.j2
|
src: kube-apiserver.j2
|
||||||
dest: /etc/kubernetes/manifests/kube-apiserver.yaml
|
dest: /etc/kubernetes/manifests/kube-apiserver.yaml
|
||||||
mode: 600
|
mode: 600
|
||||||
|
register: apiserver
|
||||||
|
when:
|
||||||
|
- inventory_hostname in groups["masters"]
|
||||||
|
|
||||||
|
- name: Restart kube-apiserver
|
||||||
|
ansible.builtin.shell: "killall kube-apiserver"
|
||||||
|
when: apiserver.changed
|
||||||
|
Loading…
Reference in New Issue
Block a user