[zh-cn]sycn kubeadm_upgrade_apply_phase kubeadm_upgrade_apply_phase_addon kubeadm-reconfigure

Signed-off-by: xin.li <xin.li@daocloud.io>
pull/49096/head
xin.li 2024-12-15 19:56:34 +08:00
parent e14d145fa1
commit e012f89fc2
3 changed files with 82 additions and 23 deletions

View File

@ -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>

View File

@ -17,7 +17,10 @@ Upgrade the default kubeadm addons
kubeadm upgrade apply phase addon [flags]
```
<!--
### Options
-->
### 选项
<table style="width: 100%; table-layout: fixed;">
<colgroup>
@ -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>

View File

@ -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.