Skip to content

Commit 5986970

Browse files
committed
sync kubeadm-reconfigure configure-service-account kubectl-node-debug custom-resource-definitions
u
1 parent 6be2699 commit 5986970

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

content/zh-cn/docs/tasks/administer-cluster/kubeadm/kubeadm-reconfigure.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,15 @@ kubeadm 将控制平面组件作为位于 `/etc/kubernetes/manifests`
156156
<!--
157157
Such changes may include:
158158
- `extraArgs` - requires updating the list of flags passed to a component container
159-
- `extraMounts` - requires updated the volume mounts for a component container
160-
- `*SANs` - requires writing new certificates with updated Subject Alternative Names.
159+
- `extraVolumes` - requires updating the volume mounts for a component container
160+
- `*SANs` - requires writing new certificates with updated Subject Alternative Names
161161
162162
Before proceeding with these changes, make sure you have backed up the directory `/etc/kubernetes/`.
163163
-->
164164

165165
此类更改可能包括:
166166
- `extraArgs` - 需要更新传递给组件容器的标志列表
167-
- `extraMounts` - 需要更新组件容器的卷挂载
167+
- `extraVolumes` - 需要更新组件容器的卷挂载
168168
- `*SANs` - 需要使用更新的主题备用名称编写新证书
169169

170170
在继续进行这些更改之前,请确保你已备份目录 `/etc/kubernetes/`

content/zh-cn/docs/tasks/configure-pod-container/configure-service-account.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -421,12 +421,12 @@ token: ...
421421
422422
{{< note >}}
423423
<!--
424-
The content of `token` is elided here.
424+
The content of `token` is omitted here.
425425
426426
Take care not to display the contents of a `kubernetes.io/service-account-token`
427427
Secret somewhere that your terminal / computer screen could be seen by an onlooker.
428428
-->
429-
这里将 `token` 的内容抹去了
429+
这里将 `token` 的内容省略了
430430
431431
注意在你的终端或者计算机屏幕可能被旁观者看到的场合,不要显示
432432
`kubernetes.io/service-account-token` 的内容。

content/zh-cn/docs/tasks/debug/debug-cluster/kubectl-node-debug.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,18 @@ When creating a debugging session on a Node, keep in mind that:
124124
* Although the container runs in the host IPC, Network, and PID namespaces,
125125
the pod isn't privileged. This means that reading some process information might fail
126126
because access to that information is restricted to superusers. For example, `chroot /host` will fail.
127-
If you need a privileged pod, create it manually.
127+
If you need a privileged pod, create it manually or use the `--profile=sysadmin` flag.
128+
* By applying [Debugging Profiles](/docs/tasks/debug/debug-application/debug-running-pod/#debugging-profiles), you can set specific properties such as [securityContext](/docs/tasks/configure-pod-container/security-context/) to a debugging Pod.
128129
-->
129130
当在节点上创建一个调试会话时,需谨记:
130131

131132
* `kubectl debug` 根据节点的名称自动生成新 Pod 的名称。
132133
* 节点的根文件系统将被挂载在 `/host`
133134
* 尽管容器运行在主机 IPC、Network 和 PID 名字空间中,但 Pod 没有特权。
134135
这意味着读取某些进程信息可能会失败,这是因为访问这些信息仅限于超级用户 (superuser)。
135-
例如,`chroot /host` 将失败。如果你需要一个有特权的 Pod,请手动创建。
136+
例如,`chroot /host` 将失败。如果你需要一个有特权的 Pod,请手动创建或使用 `--profile=sysadmin` 标志。
137+
* 通过应用[调试配置](/zh-cn/docs/tasks/debug/debug-application/debug-running-pod/#debugging-profiles)
138+
你可以为调试 Pod 设置特定的属性,例如 [securityContext](/zh-cn/docs/tasks/configure-pod-container/security-context/)
136139

137140
## {{% heading "cleanup" %}}
138141

content/zh-cn/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions.md

-1
Original file line numberDiff line numberDiff line change
@@ -2660,7 +2660,6 @@ may also be used with field selectors when included in the `spec.versions[*].sel
26602660
-->
26612661
#### 自定义资源的可选字段 {#crd-selectable-fields}
26622662
2663-
{{< feature-state state="alpha" for_k8s_version="v1.30" >}}
26642663
{{< feature-state feature_gate_name="CustomResourceFieldSelectors" >}}
26652664
26662665
<!--

0 commit comments

Comments
 (0)