Skip to content

Commit 0e47e6d

Browse files
Merge branch 'main' into patch-1
2 parents 2cac383 + 30c47c9 commit 0e47e6d

File tree

3 files changed

+59
-34
lines changed

3 files changed

+59
-34
lines changed

content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ weight: 20
99
<!-- overview -->
1010

1111
This page explains how to upgrade a Kubernetes cluster created with kubeadm from version
12-
{{< skew latestVersionAddMinor -1 >}}.x to version {{< skew latestVersion >}}.x, and from version
13-
{{< skew latestVersion >}}.x to {{< skew latestVersion >}}.y (where `y > x`). Skipping MINOR versions
12+
{{< skew currentVersionAddMinor -1 >}}.x to version {{< skew currentVersion >}}.x, and from version
13+
{{< skew currentVersion >}}.x to {{< skew currentVersion >}}.y (where `y > x`). Skipping MINOR versions
1414
when upgrading is unsupported.
1515

1616
To see information about upgrading clusters created using older versions of kubeadm,
1717
please refer to following pages instead:
1818

19-
- [Upgrading a kubeadm cluster from {{< skew latestVersionAddMinor -2 >}} to {{< skew latestVersionAddMinor -1 >}}](https://v{{< skew latestVersionAddMinor -1 "-" >}}.docs.kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/)
20-
- [Upgrading a kubeadm cluster from {{< skew latestVersionAddMinor -3 >}} to {{< skew latestVersionAddMinor -2 >}}](https://v{{< skew latestVersionAddMinor -2 "-" >}}.docs.kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/)
21-
- [Upgrading a kubeadm cluster from {{< skew latestVersionAddMinor -4 >}} to {{< skew latestVersionAddMinor -3 >}}](https://v{{< skew latestVersionAddMinor -3 "-" >}}.docs.kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/)
22-
- [Upgrading a kubeadm cluster from {{< skew latestVersionAddMinor -5 >}} to {{< skew latestVersionAddMinor -4 >}}](https://v{{< skew latestVersionAddMinor -4 "-" >}}.docs.kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/)
19+
- [Upgrading a kubeadm cluster from {{< skew currentVersionAddMinor -2 >}} to {{< skew currentVersionAddMinor -1 >}}](https://v{{< skew currentVersionAddMinor -1 "-" >}}.docs.kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/)
20+
- [Upgrading a kubeadm cluster from {{< skew currentVersionAddMinor -3 >}} to {{< skew currentVersionAddMinor -2 >}}](https://v{{< skew currentVersionAddMinor -2 "-" >}}.docs.kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/)
21+
- [Upgrading a kubeadm cluster from {{< skew currentVersionAddMinor -4 >}} to {{< skew currentVersionAddMinor -3 >}}](https://v{{< skew currentVersionAddMinor -3 "-" >}}.docs.kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/)
22+
- [Upgrading a kubeadm cluster from {{< skew currentVersionAddMinor -5 >}} to {{< skew currentVersionAddMinor -4 >}}](https://v{{< skew currentVersionAddMinor -4 "-" >}}.docs.kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/)
2323

2424
The upgrade workflow at high level is the following:
2525

@@ -45,19 +45,19 @@ The upgrade workflow at high level is the following:
4545

4646
## Determine which version to upgrade to
4747

48-
Find the latest stable {{< skew latestVersion >}} version using the OS package manager:
48+
Find the latest stable {{< skew currentVersion >}} version using the OS package manager:
4949

5050
{{< tabs name="k8s_install_versions" >}}
5151
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
5252
apt update
5353
apt-cache madison kubeadm
54-
# find the latest {{< skew latestVersion >}} version in the list
55-
# it should look like {{< skew latestVersion >}}.x-00, where x is the latest patch
54+
# find the latest {{< skew currentVersion >}} version in the list
55+
# it should look like {{< skew currentVersion >}}.x-00, where x is the latest patch
5656
{{% /tab %}}
5757
{{% tab name="CentOS, RHEL or Fedora" %}}
5858
yum list --showduplicates kubeadm --disableexcludes=kubernetes
59-
# find the latest {{< skew latestVersion >}} version in the list
60-
# it should look like {{< skew latestVersion >}}.x-0, where x is the latest patch
59+
# find the latest {{< skew currentVersion >}} version in the list
60+
# it should look like {{< skew currentVersion >}}.x-0, where x is the latest patch
6161
{{% /tab %}}
6262
{{< /tabs >}}
6363

@@ -74,18 +74,18 @@ Pick a control plane node that you wish to upgrade first. It must have the `/etc
7474

7575
{{< tabs name="k8s_install_kubeadm_first_cp" >}}
7676
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
77-
# replace x in {{< skew latestVersion >}}.x-00 with the latest patch version
77+
# replace x in {{< skew currentVersion >}}.x-00 with the latest patch version
7878
apt-mark unhold kubeadm && \
79-
apt-get update && apt-get install -y kubeadm={{< skew latestVersion >}}.x-00 && \
79+
apt-get update && apt-get install -y kubeadm={{< skew currentVersion >}}.x-00 && \
8080
apt-mark hold kubeadm
8181
-
8282
# since apt-get version 1.1 you can also use the following method
8383
apt-get update && \
84-
apt-get install -y --allow-change-held-packages kubeadm={{< skew latestVersion >}}.x-00
84+
apt-get install -y --allow-change-held-packages kubeadm={{< skew currentVersion >}}.x-00
8585
{{% /tab %}}
8686
{{% tab name="CentOS, RHEL or Fedora" %}}
87-
# replace x in {{< skew latestVersion >}}.x-0 with the latest patch version
88-
yum install -y kubeadm-{{< skew latestVersion >}}.x-0 --disableexcludes=kubernetes
87+
# replace x in {{< skew currentVersion >}}.x-0 with the latest patch version
88+
yum install -y kubeadm-{{< skew currentVersion >}}.x-0 --disableexcludes=kubernetes
8989
{{% /tab %}}
9090
{{< /tabs >}}
9191

@@ -120,13 +120,13 @@ Failing to do so will cause `kubeadm upgrade apply` to exit with an error and no
120120

121121
```shell
122122
# replace x with the patch version you picked for this upgrade
123-
sudo kubeadm upgrade apply v{{< skew latestVersion >}}.x
123+
sudo kubeadm upgrade apply v{{< skew currentVersion >}}.x
124124
```
125125

126126
Once the command finishes you should see:
127127

128128
```
129-
[upgrade/successful] SUCCESS! Your cluster was upgraded to "v{{< skew latestVersion >}}.x". Enjoy!
129+
[upgrade/successful] SUCCESS! Your cluster was upgraded to "v{{< skew currentVersion >}}.x". Enjoy!
130130

131131
[upgrade/kubelet] Now that your control plane is upgraded, please proceed with upgrading your kubelets if you haven't already done so.
132132
```
@@ -170,18 +170,18 @@ Also calling `kubeadm upgrade plan` and upgrading the CNI provider plugin is no
170170
171171
{{< tabs name="k8s_install_kubelet" >}}
172172
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
173-
# replace x in {{< skew latestVersion >}}.x-00 with the latest patch version
173+
# replace x in {{< skew currentVersion >}}.x-00 with the latest patch version
174174
apt-mark unhold kubelet kubectl && \
175-
apt-get update && apt-get install -y kubelet={{< skew latestVersion >}}.x-00 kubectl={{< skew latestVersion >}}.x-00 && \
175+
apt-get update && apt-get install -y kubelet={{< skew currentVersion >}}.x-00 kubectl={{< skew currentVersion >}}.x-00 && \
176176
apt-mark hold kubelet kubectl
177177
-
178178
# since apt-get version 1.1 you can also use the following method
179179
apt-get update && \
180-
apt-get install -y --allow-change-held-packages kubelet={{< skew latestVersion >}}.x-00 kubectl={{< skew latestVersion >}}.x-00
180+
apt-get install -y --allow-change-held-packages kubelet={{< skew currentVersion >}}.x-00 kubectl={{< skew currentVersion >}}.x-00
181181
{{% /tab %}}
182182
{{% tab name="CentOS, RHEL or Fedora" %}}
183-
# replace x in {{< skew latestVersion >}}.x-0 with the latest patch version
184-
yum install -y kubelet-{{< skew latestVersion >}}.x-0 kubectl-{{< skew latestVersion >}}.x-0 --disableexcludes=kubernetes
183+
# replace x in {{< skew currentVersion >}}.x-0 with the latest patch version
184+
yum install -y kubelet-{{< skew currentVersion >}}.x-0 kubectl-{{< skew currentVersion >}}.x-0 --disableexcludes=kubernetes
185185
{{% /tab %}}
186186
{{< /tabs >}}
187187
@@ -212,18 +212,18 @@ without compromising the minimum required capacity for running your workloads.
212212
213213
{{< tabs name="k8s_install_kubeadm_worker_nodes" >}}
214214
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
215-
# replace x in {{< skew latestVersion >}}.x-00 with the latest patch version
215+
# replace x in {{< skew currentVersion >}}.x-00 with the latest patch version
216216
apt-mark unhold kubeadm && \
217-
apt-get update && apt-get install -y kubeadm={{< skew latestVersion >}}.x-00 && \
217+
apt-get update && apt-get install -y kubeadm={{< skew currentVersion >}}.x-00 && \
218218
apt-mark hold kubeadm
219219
-
220220
# since apt-get version 1.1 you can also use the following method
221221
apt-get update && \
222-
apt-get install -y --allow-change-held-packages kubeadm={{< skew latestVersion >}}.x-00
222+
apt-get install -y --allow-change-held-packages kubeadm={{< skew currentVersion >}}.x-00
223223
{{% /tab %}}
224224
{{% tab name="CentOS, RHEL or Fedora" %}}
225-
# replace x in {{< skew latestVersion >}}.x-0 with the latest patch version
226-
yum install -y kubeadm-{{< skew latestVersion >}}.x-0 --disableexcludes=kubernetes
225+
# replace x in {{< skew currentVersion >}}.x-0 with the latest patch version
226+
yum install -y kubeadm-{{< skew currentVersion >}}.x-0 --disableexcludes=kubernetes
227227
{{% /tab %}}
228228
{{< /tabs >}}
229229
@@ -250,18 +250,18 @@ without compromising the minimum required capacity for running your workloads.
250250
251251
{{< tabs name="k8s_kubelet_and_kubectl" >}}
252252
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
253-
# replace x in {{< skew latestVersion >}}.x-00 with the latest patch version
253+
# replace x in {{< skew currentVersion >}}.x-00 with the latest patch version
254254
apt-mark unhold kubelet kubectl && \
255-
apt-get update && apt-get install -y kubelet={{< skew latestVersion >}}.x-00 kubectl={{< skew latestVersion >}}.x-00 && \
255+
apt-get update && apt-get install -y kubelet={{< skew currentVersion >}}.x-00 kubectl={{< skew currentVersion >}}.x-00 && \
256256
apt-mark hold kubelet kubectl
257257
-
258258
# since apt-get version 1.1 you can also use the following method
259259
apt-get update && \
260-
apt-get install -y --allow-change-held-packages kubelet={{< skew latestVersion >}}.x-00 kubectl={{< skew latestVersion >}}.x-00
260+
apt-get install -y --allow-change-held-packages kubelet={{< skew currentVersion >}}.x-00 kubectl={{< skew currentVersion >}}.x-00
261261
{{% /tab %}}
262262
{{% tab name="CentOS, RHEL or Fedora" %}}
263-
# replace x in {{< skew latestVersion >}}.x-0 with the latest patch version
264-
yum install -y kubelet-{{< skew latestVersion >}}.x-0 kubectl-{{< skew latestVersion >}}.x-0 --disableexcludes=kubernetes
263+
# replace x in {{< skew currentVersion >}}.x-0 with the latest patch version
264+
yum install -y kubelet-{{< skew currentVersion >}}.x-0 kubectl-{{< skew currentVersion >}}.x-0 --disableexcludes=kubernetes
265265
{{% /tab %}}
266266
{{< /tabs >}}
267267

content/pt-br/docs/concepts/containers/runtime-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Agentes de execução são configurados através da configuração do containerd
112112
`/etc/containerd/config.toml`. Agentes válidos são configurados sob a seção de `runtimes`:
113113

114114
```
115-
[plugins.cri.containerd.runtimes.${HANDLER_NAME}]
115+
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.${HANDLER_NAME}]
116116
```
117117

118118
Veja a documentação de configuração do containerd para maiores detalhes:

layouts/shortcodes/skew.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,36 @@
5454
{{- $latestVersionAddMinor = printf "%s%s%d" (index $versionArray 0) $seperator $latestVersionAddMinor -}}
5555
{{- $latestVersionAddMinor -}}
5656
{{- end -}}
57+
58+
{{- $currentVersion := site.Params.version -}}
59+
{{- $currentVersion := (replace $currentVersion "v" "") -}}
60+
{{- $currentVersionArray := split $currentVersion "." -}}
61+
{{- $currentMinorVersion := int (index $currentVersionArray 1) -}}
62+
63+
<!-- output latestVersion based on captured arg -->
64+
{{- if eq $version "currentVersion" -}}
65+
{{- $currentVersion -}}
66+
{{- end -}}
67+
68+
<!-- output currentVersionAddMinor based on captured args -->
69+
{{- if eq $version "currentVersionAddMinor" -}}
70+
{{- $seperator := .Get 2 -}}
71+
{{- if eq $seperator "" -}}
72+
{{- $seperator = "." -}}
73+
{{- end -}}
74+
{{- $currentVersionAddMinor := int (.Get 1) -}}
75+
{{- $currentVersionAddMinor = add $currentMinorVersion $currentVersionAddMinor -}}
76+
{{- $currentVersionAddMinor = printf "%s%s%d" (index $versionArray 0) $seperator $currentVersionAddMinor -}}
77+
{{- $currentVersionAddMinor -}}
78+
{{- end -}}
79+
5780
<!--
5881
example shortcode use:
5982
- skew nextMinorVersion
6083
- skew latestVersion
84+
- skew currentVersion
6185
- skew prevMinorVersion
6286
- skew oldestMinorVersion
6387
- skew latestVersionAddMinor -1 "-"
88+
- skew currentVersionAddMinor -1 "-"
6489
-->

0 commit comments

Comments
 (0)