Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zh-cn]sycn kubeadm_upgrade_apply_phase kubeadm_upgrade_apply_phase_addon kubeadm-reconfigure #49096

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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