Skip to content

Commit 22fcb3e

Browse files
committed
sync dns-pod-service service dynamic-provisioning
1 parent b956c22 commit 22fcb3e

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

content/zh-cn/docs/concepts/services-networking/dns-pod-service.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ When you set `setHostnameAsFQDN: true` in the Pod spec, the kubelet writes the P
370370
<!--
371371
In Linux, the hostname field of the kernel (the `nodename` field of `struct utsname`) is limited to 64 characters.
372372

373-
If a Pod enables this feature and its FQDN is longer than 64 character, it will fail to start. The Pod will remain in `Pending` status (`ContainerCreating` as seen by `kubectl`) generating error events, such as Failed to construct FQDN from Pod hostname and cluster domain, FQDN `long-FQDN` is too long (64 characters is the max, 70 characters requested). One way of improving user experience for this scenario is to create an [admission webhook controller](/docs/reference/access-authn-authz/extensible-admission-controllers/#admission-webhooks) to control FQDN size when users create top level objects, for example, Deployment.
373+
If a Pod enables this feature and its FQDN is longer than 64 character, it will fail to start. The Pod will remain in `Pending` status (`ContainerCreating` as seen by `kubectl`) generating error events, such as Failed to construct FQDN from Pod hostname and cluster domain, FQDN `long-FQDN` is too long (64 characters is the max, 70 characters requested). One way of improving user experience for this scenario is to create an [admission webhook controller](/docs/reference/access-authn-authz/extensible-admission-controllers/#what-are-admission-webhooks) to control FQDN size when users create top level objects, for example, Deployment.
374374
-->
375375
在 Linux 中,内核的主机名字段(`struct utsname` 的 `nodename` 字段)限定最多 64 个字符。
376376

@@ -381,7 +381,7 @@ Pod 会一直出于 `Pending` 状态(通过 `kubectl` 所看到的 `ContainerC
381381
`long-FQDN` is too long (64 characters is the max, 70 characters requested)."
382382
(无法基于 Pod 主机名和集群域名构造 FQDN,FQDN `long-FQDN` 过长,至多 64 个字符,请求字符数为 70)。
383383
对于这种场景而言,改善用户体验的一种方式是创建一个
384-
[准入 Webhook 控制器](/zh-cn/docs/reference/access-authn-authz/extensible-admission-controllers/#admission-webhooks),
384+
[准入 Webhook 控制器](/zh-cn/docs/reference/access-authn-authz/extensible-admission-controllers/#what-are-admission-webhooks),
385385
在用户创建顶层对象(如 Deployment)的时候控制 FQDN 的长度。
386386
{{< /note >}}
387387

content/zh-cn/docs/concepts/services-networking/service.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ can define your own (provider specific) annotations on the Service that specify
11001100
-->
11011101
#### 混合协议类型的负载均衡器
11021102

1103-
{{< feature-state for_k8s_version="v1.26" state="stable" >}}
1103+
{{< feature-state feature_gate_name="MixedProtocolLBService" >}}
11041104

11051105
<!--
11061106
By default, for LoadBalancer type of Services, when there is more than one port defined, all
@@ -1197,7 +1197,7 @@ Unprefixed names are reserved for end-users.
11971197
-->
11981198
#### 指定负载均衡器状态的 IPMode {#load-balancer-ip-mode}
11991199

1200-
{{< feature-state for_k8s_version="v1.29" state="alpha" >}}
1200+
{{< feature-state feature_gate_name="LoadBalancerIPMode" >}}
12011201

12021202
<!--
12031203
Starting as Alpha in Kubernetes 1.29,

content/zh-cn/docs/concepts/storage/dynamic-provisioning.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,14 @@ When a default `StorageClass` exists in a cluster and a user creates a
197197
`DefaultStorageClass` 准入控制器会自动向其中添加指向默认存储类的 `storageClassName` 字段。
198198

199199
<!--
200-
Note that there can be at most one *default* storage class on a cluster, or
201-
a `PersistentVolumeClaim` without `storageClassName` explicitly specified cannot
202-
be created.
203-
-->
204-
请注意,集群上最多只能有一个 **默认** 存储类,否则无法创建没有明确指定
205-
`storageClassName` 的 `PersistentVolumeClaim`。
200+
Note that if you set the `storageclass.kubernetes.io/is-default-class`
201+
annotation to true on more than one StorageClass in your cluster, and you then
202+
create a `PersistentVolumeClaim` with no `storageClassName` set, Kubernetes
203+
uses the most recently created default StorageClass.
204+
-->
205+
请注意,如果你在集群的多个 StorageClass 设置 `storageclass.kubernetes.io/is-default-class` 注解为 true,
206+
并之后创建了未指定 `storageClassName` 的 `PersistentVolumeClaim`,
207+
Kubernetes 会使用最新创建的默认 StorageClass。
206208

207209
<!--
208210
## Topology Awareness

0 commit comments

Comments
 (0)