Skip to content

Commit

Permalink
Merge pull request #49096 from my-git9/pp-10902
Browse files Browse the repository at this point in the history
[zh-cn]sycn kubeadm_upgrade_apply_phase kubeadm_upgrade_apply_phase_addon kubeadm-reconfigure
  • Loading branch information
k8s-ci-robot authored Dec 18, 2024
2 parents 89b915b + e012f89 commit 2438801
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!--
Use this command to invoke single phase of the "apply" workflow
-->
使用此命令来调用 "apply" 工作流的单个阶段

<!--
### Synopsis
-->
### 概要

<!--
Use this command to invoke single phase of the "apply" workflow
-->
使用此命令来调用 "apply" 工作流的单个阶段

```shell
kubeadm upgrade apply phase [flags]
```

<!--
### Options
-->
### 选项

<table style="width: 100%; table-layout: fixed;">
<colgroup>
<col span="1" style="width: 10px;" />
<col span="1" />
</colgroup>
<tbody>

<tr>
<td colspan="2">-h, --help</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!--
help for phase
-->
phase 操作的帮助命令。
</p>
</td>
</tr>

</tbody>
</table>

<!--
### Options inherited from parent commands
-->
### 从父命令继承的选项

<table style="width: 100%; table-layout: fixed;">
<colgroup>
<col span="1" style="width: 10px;" />
<col span="1" />
</colgroup>
<tbody>

<tr>
<td colspan="2">--rootfs string</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;"><p>
<!--
The path to the 'real' host root filesystem. This will cause kubeadm to chroot into the provided path.
-->
到“真实”主机根文件系统的路径。配置此参数将导致 kubeadm 切换到所提供的路径。
</p>
</td>
</tr>

</tbody>
</table>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ Upgrade the default kubeadm addons
kubeadm upgrade apply phase addon [flags]
```

<!--
### Options
-->
### 选项

<table style="width: 100%; table-layout: fixed;">
<colgroup>
Expand All @@ -31,10 +34,10 @@ kubeadm upgrade apply phase addon [flags]
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<p>
<!--
help for addon
-->
<p>
addon 操作的帮助命令。
</p>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,35 +379,16 @@ kubectl edit service -n kube-system kube-dns
<!--
#### Reflecting the CoreDNS changes
Once the CoreDNS changes are applied you can delete the CoreDNS Pods:
Obtain the Pod names:
Once the CoreDNS changes are applied you can restart the CoreDNS deployment:
-->
#### 反映 CoreDNS 的更改

应用 CoreDNS 更改后,你可以删除 CoreDNS Pod。

获取 Pod 名称:
一旦应用了 CoreDNS 更改,你就可以重新启动 CoreDNS Deployment:

```shell
kubectl get po -n kube-system | grep coredns
kubectl rollout restart deployment -n kube-system coredns
```

<!--
Delete a Pod with:
-->
使用以下命令删除 Pod:

```shell
kubectl delete po -n kube-system <pod-name>
```

<!--
New Pods with the updated CoreDNS configuration will be created.
-->
将创建具有更新的 CoreDNS 配置的新 Pod。

{{< note >}}
<!--
kubeadm does not allow CoreDNS configuration during cluster creation and upgrade.
Expand Down

0 comments on commit 2438801

Please sign in to comment.