Merge pull request #49096 from my-git9/pp-10902
[zh-cn]sycn kubeadm_upgrade_apply_phase kubeadm_upgrade_apply_phase_addon kubeadm-reconfigure
This commit is contained in:
commit
2438801a8e
|
|
@ -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>
|
||||||
|
|
@ -17,7 +17,10 @@ Upgrade the default kubeadm addons
|
||||||
kubeadm upgrade apply phase addon [flags]
|
kubeadm upgrade apply phase addon [flags]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<!--
|
||||||
### Options
|
### Options
|
||||||
|
-->
|
||||||
|
### 选项
|
||||||
|
|
||||||
<table style="width: 100%; table-layout: fixed;">
|
<table style="width: 100%; table-layout: fixed;">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
|
|
@ -31,10 +34,10 @@ kubeadm upgrade apply phase addon [flags]
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td></td><td style="line-height: 130%; word-wrap: break-word;">
|
<td></td><td style="line-height: 130%; word-wrap: break-word;">
|
||||||
|
<p>
|
||||||
<!--
|
<!--
|
||||||
help for addon
|
help for addon
|
||||||
-->
|
-->
|
||||||
<p>
|
|
||||||
addon 操作的帮助命令。
|
addon 操作的帮助命令。
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
|
|
@ -379,35 +379,16 @@ kubectl edit service -n kube-system kube-dns
|
||||||
<!--
|
<!--
|
||||||
#### Reflecting the CoreDNS changes
|
#### Reflecting the CoreDNS changes
|
||||||
|
|
||||||
Once the CoreDNS changes are applied you can delete the CoreDNS Pods:
|
Once the CoreDNS changes are applied you can restart the CoreDNS deployment:
|
||||||
|
|
||||||
Obtain the Pod names:
|
|
||||||
|
|
||||||
-->
|
-->
|
||||||
#### 反映 CoreDNS 的更改
|
#### 反映 CoreDNS 的更改
|
||||||
|
|
||||||
应用 CoreDNS 更改后,你可以删除 CoreDNS Pod。
|
一旦应用了 CoreDNS 更改,你就可以重新启动 CoreDNS Deployment:
|
||||||
|
|
||||||
获取 Pod 名称:
|
|
||||||
|
|
||||||
```shell
|
```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 >}}
|
{{< note >}}
|
||||||
<!--
|
<!--
|
||||||
kubeadm does not allow CoreDNS configuration during cluster creation and upgrade.
|
kubeadm does not allow CoreDNS configuration during cluster creation and upgrade.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue