Skip to content

Commit

Permalink
Update kubernetes version to 1.22.2
Browse files Browse the repository at this point in the history
  • Loading branch information
floryut authored and mmelyp committed Nov 15, 2021
1 parent fce8502 commit 879b1dd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Note: Upstart/SysV init based OS types are not supported.
## Supported Components

- Core
- [kubernetes](https://github.com/kubernetes/kubernetes) v1.21.5
- [kubernetes](https://github.com/kubernetes/kubernetes) v1.22.2
- [etcd](https://github.com/coreos/etcd) v3.4.13
- [docker](https://www.docker.com/) v20.10 (see note)
- [containerd](https://containerd.io/) v1.4.9
Expand Down
2 changes: 1 addition & 1 deletion inventory/sample/group_vars/k8s_cluster/k8s-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ kube_token_dir: "{{ kube_config_dir }}/tokens"
kube_api_anonymous_auth: true

## Change this to use another Kubernetes version, e.g. a current beta release
kube_version: v1.21.5
kube_version: v1.22.2

# Where the binaries will be downloaded.
# Note: ensure that you've enough disk space (about 1G)
Expand Down
3 changes: 2 additions & 1 deletion roles/container-engine/cri-o/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ crio_stream_port: "10010"
crio_required_version: "{{ kube_version | regex_replace('^v(?P<major>\\d+).(?P<minor>\\d+).(?P<patch>\\d+)$', '\\g<major>.\\g<minor>') }}"

crio_kubernetes_version_matrix:
"1.22": "1.21"
"1.21": "1.21"
"1.20": "1.20"
"1.19": "1.19"

crio_version: "{{ crio_kubernetes_version_matrix[crio_required_version] | default('1.21') }}"
crio_version: "{{ crio_kubernetes_version_matrix[crio_required_version] | default('1.22') }}"

# The crio_runtimes variable defines a list of OCI compatible runtimes.
crio_runtimes:
Expand Down
2 changes: 1 addition & 1 deletion roles/kubespray-defaults/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ is_fedora_coreos: false
disable_swap: true

## Change this to use another Kubernetes version, e.g. a current beta release
kube_version: v1.21.5
kube_version: v1.22.2

## The minimum version working
kube_version_min_required: v1.19.0
Expand Down

0 comments on commit 879b1dd

Please sign in to comment.