-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade: kubernetes cleanup and refactor
- Loading branch information
Showing
33 changed files
with
438 additions
and
480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
...cli/data/common/ansible/playbooks/roles/upgrade/tasks/kubernetes/Debian/hold-packages.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 7 additions & 6 deletions
13
...i/data/common/ansible/playbooks/roles/upgrade/tasks/kubernetes/Debian/install-kubeadm.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
- name: "upgrade-master | Unhold kubeadm" | ||
shell: >- | ||
--- | ||
- name: upgrade-master | Unhold kubeadm | ||
command: >- | ||
apt-mark unhold kubeadm | ||
- name: >- | ||
install-packages | Install kubeadm {{ version }} packages for Debian family | ||
apt: | ||
name: kubeadm={{ version }}-00 | ||
update_cache: yes | ||
update_cache: true | ||
state: present | ||
|
||
- name: "upgrade-master | Hold kubeadm" | ||
shell: >- | ||
apt-mark hold kubeadm | ||
- name: upgrade-master | Hold kubeadm | ||
command: >- | ||
apt-mark hold kubeadm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
...i/data/common/ansible/playbooks/roles/upgrade/tasks/kubernetes/RedHat/install-kubeadm.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
--- | ||
- name: >- | ||
install-packages | Install kubeadm-{{ version }} package for RedHat family | ||
- name: "install-packages | Install kubeadm-{{ version }} package for RedHat family" | ||
yum: | ||
name: kubeadm-{{ version }}-0 | ||
update_cache: yes | ||
allow_downgrade: yes | ||
update_cache: true | ||
allow_downgrade: true | ||
disable_excludes: kubernetes | ||
state: present | ||
state: present |
9 changes: 4 additions & 5 deletions
9
...sible/playbooks/roles/upgrade/tasks/kubernetes/RedHat/install-packages-cni-in-kubelet.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
--- | ||
- name: >- | ||
install-packages | Install kubelet-{{ version }} and kubectl-{{ version }} packages for RedHat family | ||
- name: "install-packages | Install kubelet-{{ version }} and kubectl-{{ version }} packages for RedHat family" | ||
yum: | ||
name: | ||
- kubelet-{{ version }}-0 # removes (replaces) kubernetes-cni when full version is 1.17.7-0 but not when 1.17.7-1 | ||
- kubectl-{{ version }}-0 | ||
update_cache: yes | ||
allow_downgrade: yes | ||
update_cache: true | ||
allow_downgrade: true | ||
disable_excludes: kubernetes | ||
state: present | ||
state: present |
9 changes: 4 additions & 5 deletions
9
.../data/common/ansible/playbooks/roles/upgrade/tasks/kubernetes/RedHat/install-packages.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
--- | ||
- name: >- | ||
install-packages | Install kubernetes-cni-{{ cni_version }}, kubelet-{{ version }}, kubectl-{{ version }} packages for RedHat family | ||
- name: "install-packages | Install kubernetes-cni-{{ cni_version }}, kubelet-{{ version }}, kubectl-{{ version }} packages for RedHat family" | ||
yum: | ||
name: | ||
- kubernetes-cni-{{ cni_version }}-0 | ||
- kubelet-{{ version }}-0 | ||
- kubectl-{{ version }}-0 | ||
update_cache: yes | ||
allow_downgrade: yes | ||
update_cache: true | ||
allow_downgrade: true | ||
disable_excludes: kubernetes | ||
state: present | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...icli/data/common/ansible/playbooks/roles/upgrade/tasks/kubernetes/get-cluster-version.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...icli/data/common/ansible/playbooks/roles/upgrade/tasks/kubernetes/get-kubelet-version.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
--- | ||
- name: Get kubelet version from API server | ||
environment: | ||
KUBECONFIG: "/home/{{ admin_user.name }}/.kube/config" | ||
shell: >- | ||
KUBECONFIG: /home/{{ admin_user.name }}/.kube/config | ||
command: >- | ||
kubectl get node {{ inventory_hostname }} -o jsonpath='{.status.nodeInfo.kubeletVersion}' | ||
register: kubelet_version | ||
changed_when: false | ||
|
||
- name: Set kubelet version as fact | ||
set_fact: | ||
kubelet_version: "{{ kubelet_version.stdout }}" | ||
kubelet_version: "{{ kubelet_version.stdout }}" |
7 changes: 0 additions & 7 deletions
7
core/src/epicli/data/common/ansible/playbooks/roles/upgrade/tasks/kubernetes/node/drain.yml
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...src/epicli/data/common/ansible/playbooks/roles/upgrade/tasks/kubernetes/node/uncordon.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.