@@ -2745,8 +2745,6 @@ Type: Label
2745
2745
Example: ` service.kubernetes.io/service-proxy-name: "foo-bar"`
2746
2746
2747
2747
Used on : Service
2748
-
2749
- The kube-proxy has this label for custom proxy, which delegates service control to custom proxy.
2750
2748
-->
2751
2749
# ## service.kubernetes.io/service-proxy-name {#servicekubernetesioservice-proxy-name}
2752
2750
@@ -2756,7 +2754,17 @@ The kube-proxy has this label for custom proxy, which delegates service control
2756
2754
2757
2755
用于:Service
2758
2756
2759
- kube-proxy 自定义代理会使用这个标签,它将服务控制委托给自定义代理。
2757
+ <!--
2758
+ Setting a value for this label tells kube-proxy to ignore this service for proxying purposes.
2759
+ This allows for use of alternative proxy implementations for this service (e.g. running
2760
+ a DaemonSet that manages nftables its own way). Multiple alternative proxy implementations
2761
+ could be active simultaneously using this field, e.g. by having a value unique to each
2762
+ alternative proxy implementation to be responsible for their respective services.
2763
+ -->
2764
+ 为这个标签设置一个值会告诉 kube-proxy 在执行代理操作时忽略此 Service。
2765
+ 这一标签使得用户能够为此 Service 使用替代的代理实现(例如,运行管理 nftables 的 DaemonSet)。
2766
+ 通过此字段,可以同时激活多个替代代理实现,例如,为每个替代代理实现设置唯一值,
2767
+ 以负责各自的 Service。
2760
2768
2761
2769
<!--
2762
2770
### experimental.windows.kubernetes.io/isolation-type (deprecated) {#experimental-windows-kubernetes-io-isolation-type}
@@ -3375,13 +3383,6 @@ Type: Annotation
3375
3383
Example: ` scheduler.alpha.kubernetes.io/tolerationsWhitelist: '[{"operator": "Exists", "effect": "NoSchedule", "key": "dedicated-node"}]'`
3376
3384
3377
3385
Used on : Namespace
3378
-
3379
- This annotation is only useful when the (Alpha)
3380
- [PodTolerationRestriction](/docs/reference/access-authn-authz/admission-controllers/#podtolerationrestriction)
3381
- admission controller is enabled. The annotation value is a JSON document that defines a list of
3382
- allowed tolerations for the namespace it annotates. When you create a Pod or modify its
3383
- tolerations, the API server checks the tolerations to see if they are mentioned in the allow list.
3384
- The pod is admitted only if the check succeeds.
3385
3386
-->
3386
3387
# ## scheduler.alpha.kubernetes.io/tolerationsWhitelist {#schedulerkubernetestolerations-whitelist}
3387
3388
@@ -3391,6 +3392,14 @@ The pod is admitted only if the check succeeds.
3391
3392
3392
3393
用于:命名空间
3393
3394
3395
+ <!--
3396
+ This annotation is only useful when the (Alpha)
3397
+ [PodTolerationRestriction](/docs/reference/access-authn-authz/admission-controllers/#podtolerationrestriction)
3398
+ admission controller is enabled. The annotation value is a JSON document that defines a list of
3399
+ allowed tolerations for the namespace it annotates. When you create a Pod or modify its
3400
+ tolerations, the API server checks the tolerations to see if they are mentioned in the allow list.
3401
+ The pod is admitted only if the check succeeds.
3402
+ -->
3394
3403
此注解只有在启用(Alpha)
3395
3404
[PodTolerationRestriction](/zh-cn/docs/reference/access-authn-authz/admission-controllers/#podtolerationrestriction)
3396
3405
控制器时才生效。注解值是一个 JSON 文档,它为它所注解的命名空间定义了一个允许容忍的列表。
@@ -4878,10 +4887,6 @@ Used on: Pod
4878
4887
This annotation was only relevant if you were using
4879
4888
[PodSecurityPolicy](/docs/concepts/security/pod-security-policy/) objects.
4880
4889
Kubernetes v{{< skew currentVersion >}} does not support the PodSecurityPolicy API.
4881
-
4882
- When the PodSecurityPolicy admission controller admitted a Pod, the admission controller
4883
- modified the Pod to have this annotation.
4884
- The value of the annotation was the name of the PodSecurityPolicy that was used for validation.
4885
4890
-->
4886
4891
# ## kubernetes.io/psp(已弃用) {#kubernetes-io-psp}
4887
4892
@@ -4894,6 +4899,11 @@ The value of the annotation was the name of the PodSecurityPolicy that was used
4894
4899
这个注解只在你使用 [PodSecurityPolicies](/zh-cn/docs/concepts/security/pod-security-policy/) 时才有意义。
4895
4900
Kubernetes v{{< skew currentVersion >}} 不支持 PodSecurityPolicy API。
4896
4901
4902
+ <!--
4903
+ When the PodSecurityPolicy admission controller admitted a Pod, the admission controller
4904
+ modified the Pod to have this annotation.
4905
+ The value of the annotation was the name of the PodSecurityPolicy that was used for validation.
4906
+ -->
4897
4907
当 PodSecurityPolicy 准入控制器接受一个 Pod 时,会修改该 Pod,并给这个 Pod 添加此注解。
4898
4908
注解的值是用来对 Pod 进行验证检查的 PodSecurityPolicy 的名称。
4899
4909
0 commit comments