mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-19 14:57:43 -02:30
Instead of doc update, change the verify step
This commit is contained in:
@@ -18,11 +18,6 @@ versions. Here are all version vars for each component:
|
|||||||
* flannel_version
|
* flannel_version
|
||||||
* kubedns_version
|
* kubedns_version
|
||||||
|
|
||||||
Please remember that some components upgrade depends on minimum installed version.
|
|
||||||
In example **calico version 2.6.5 upgrade to 3.1.1 is upgrading etcd store to etcdv3**.
|
|
||||||
The kubespray stack upgrade would failed when calico version is below 2.6.5. Please check
|
|
||||||
components' documentation and always upgrade test environment first.
|
|
||||||
|
|
||||||
#### Unsafe upgrade example
|
#### Unsafe upgrade example
|
||||||
|
|
||||||
If you wanted to upgrade just kube_version from v1.4.3 to v1.4.6, you could
|
If you wanted to upgrade just kube_version from v1.4.3 to v1.4.6, you could
|
||||||
|
|||||||
@@ -127,3 +127,21 @@
|
|||||||
tags:
|
tags:
|
||||||
- cloud-provider
|
- cloud-provider
|
||||||
- facts
|
- facts
|
||||||
|
|
||||||
|
- name: "Get current version of calico cluster version"
|
||||||
|
shell: "{{ bin_dir }}/calicoctl version | grep 'Cluster Version' | awk '{ print $3}'"
|
||||||
|
register: calico_version_on_server
|
||||||
|
run_once: yes
|
||||||
|
delegate_to: "{{ groups['kube-master'][0] }}"
|
||||||
|
|
||||||
|
|
||||||
|
- name: "Check that calico version is enought for upgrade"
|
||||||
|
assert:
|
||||||
|
that:
|
||||||
|
- calico_version_on_server.stdout|version_compare('v2.6.5', '>=')
|
||||||
|
msg: "Your version of calico is not fresh enough for upgrade. Minimum version v2.6.5"
|
||||||
|
when:
|
||||||
|
- 'calico_version_on_server.stdout is defined'
|
||||||
|
- 'calico_version_on_server.stdout != ""'
|
||||||
|
- inventory_hostname == groups['kube-master'][0]
|
||||||
|
run_once: yes
|
||||||
|
|||||||
Reference in New Issue
Block a user