From c14901afa62041b8013585d5b3a0828daf49a7fb Mon Sep 17 00:00:00 2001 From: windsonsea Date: Tue, 31 Oct 2023 09:12:12 +0800 Subject: [PATCH] [zh] Sync kube-proxy-config.v1alpha1.md --- .../config-api/kube-proxy-config.v1alpha1.md | 530 +++++++++--------- 1 file changed, 269 insertions(+), 261 deletions(-) diff --git a/content/zh-cn/docs/reference/config-api/kube-proxy-config.v1alpha1.md b/content/zh-cn/docs/reference/config-api/kube-proxy-config.v1alpha1.md index 6e9bbca7db7..08a1f5a4966 100644 --- a/content/zh-cn/docs/reference/config-api/kube-proxy-config.v1alpha1.md +++ b/content/zh-cn/docs/reference/config-api/kube-proxy-config.v1alpha1.md @@ -18,6 +18,260 @@ auto_generated: true - [KubeProxyConfiguration](#kubeproxy-config-k8s-io-v1alpha1-KubeProxyConfiguration) +## `ClientConnectionConfiguration` {#ClientConnectionConfiguration} + + +**出现在:** + +- [KubeProxyConfiguration](#kubeproxy-config-k8s-io-v1alpha1-KubeProxyConfiguration) + +- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta3-KubeSchedulerConfiguration) + +- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1-KubeSchedulerConfiguration) + +- [GenericControllerManagerConfiguration](#controllermanager-config-k8s-io-v1alpha1-GenericControllerManagerConfiguration) + + +ClientConnectionConfiguration 包含构造客户端所需要的细节信息。 + + + + + + + + + + + + + + + + + + + + + +
字段描述
kubeconfig [必需]
+string +
+ +

kubeconfig 字段是指向一个 KubeConfig 文件的路径。

+
acceptContentTypes [必需]
+string +
+ +

acceptContentTypes 字段定义客户端在连接到服务器时所发送的 Accept 头部字段。 + 此设置值会覆盖默认配置 'application/json'。 + 此字段会控制某特定客户端与指定服务器的所有链接。

+
contentType [必需]
+string +
+ +

contentType 字段是从此客户端向服务器发送数据时使用的内容类型(Content Type)。

+
qps [必需]
+float32 +
+ +

qps 字段控制此连接上每秒钟可以发送的查询请求个数。

+
burst [必需]
+int32 +
+ +

burst 字段允许客户端超出其速率限制时可以临时累积的额外查询个数。

+
+ +## `DebuggingConfiguration` {#DebuggingConfiguration} + + +**出现在:** + +- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta3-KubeSchedulerConfiguration) + +- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1-KubeSchedulerConfiguration) + +- [GenericControllerManagerConfiguration](#controllermanager-config-k8s-io-v1alpha1-GenericControllerManagerConfiguration) + + +DebuggingConfiguration 包含调试相关功能的配置。 + + + + + + + + + + + + +
字段描述
enableProfiling [Required]
+bool +
+ +

enableProfiling 字段通过位于 host:port/debug/pprof/ + 的 Web 接口启用性能分析。

+
enableContentionProfiling [Required]
+bool +
+ +

enableContentionProfiling 字段在 enableProfiling + 为 true 时启用阻塞分析。

+
+ + +## `LeaderElectionConfiguration` {#LeaderElectionConfiguration} + + +**出现在:** + +- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta3-KubeSchedulerConfiguration) + +- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1-KubeSchedulerConfiguration) + +- [GenericControllerManagerConfiguration](#controllermanager-config-k8s-io-v1alpha1-GenericControllerManagerConfiguration) + + +LeaderElectionConfiguration 为能够支持领导者选举的组件定义其领导者选举客户端的配置。 + + + + + + + + + + + + + + + + + + + + + + + + + + + +
字段描述
leaderElect [必需]
+bool +
+ +

+ leaderElect 字段允许领导者选举客户端在进入主循环执行之前先获得领导者角色。 + 运行多副本组件时启用此功能有助于提高可用性。 +

+
leaseDuration [必需]
+meta/v1.Duration +
+ +

+ leaseDuration 字段是非领导角色候选者在观察到需要领导席位更新时要等待的时间; + 只有经过所设置时长才可以尝试去获得一个仍处于领导状态但需要被刷新的席位。 + 这里的设置值本质上意味着某个领导者在被另一个候选者替换掉之前可以停止运行的最长时长。 + 只有当启用了领导者选举时此字段有意义。 +

+
renewDeadline [必需]
+meta/v1.Duration +
+ +

+ renewDeadline 字段设置的是当前领导者在停止扮演领导角色之前需要刷新领导状态的时间间隔。 + 此值必须小于或等于租约期限的长度。只有到启用了领导者选举时此字段才有意义。 +

+
retryPeriod [必需]
+meta/v1.Duration +
+ +

+ retryPeriod 字段是客户端在连续两次尝试获得或者刷新领导状态之间需要等待的时长。 + 只有当启用了领导者选举时此字段才有意义。 +

+
resourceLock [必需]
+string +
+ +

resourceLock 字段给出在领导者选举期间要作为锁来使用的资源对象类型。

+
resourceName [必需]
+string +
+ +

resourceName 字段给出在领导者选举期间要作为锁来使用的资源对象名称。

+
resourceNamespace [必需]
+string +
+ +

resourceNamespace 字段给出在领导者选举期间要作为锁来使用的资源对象所在名字空间。

+
+ ## `KubeProxyConfiguration` {#kubeproxy-config-k8s-io-v1alpha1-KubeProxyConfiguration} [必需]
+LoggingConfiguration + + + +

logging 字段指定记录日志的选项。更多细节参阅 + Logs Options

+ + + @@ -724,264 +993,3 @@ will exit with an error. -->

如果代理模式未被指定,将使用最佳可用的代理模式(目前在 Linux 上是 iptables,在 Windows 上是 kernelspace)。 如果不能使用选定的代理模式(由于缺少内核支持、缺少用户空间组件等),则 kube-proxy 将出错并退出。

- -## `ClientConnectionConfiguration` {#ClientConnectionConfiguration} - - -**出现在:** - -- [KubeProxyConfiguration](#kubeproxy-config-k8s-io-v1alpha1-KubeProxyConfiguration) - - -- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta2-KubeSchedulerConfiguration) - -- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta3-KubeSchedulerConfiguration) - -- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1-KubeSchedulerConfiguration) - -- [GenericControllerManagerConfiguration](#controllermanager-config-k8s-io-v1alpha1-GenericControllerManagerConfiguration) - - -ClientConnectionConfiguration 包含构造客户端所需要的细节信息。 - - - - - - - - - - - - - - - - - - - - - -
字段描述
kubeconfig [必需]
-string -
- -

kubeconfig 字段是指向一个 KubeConfig 文件的路径。

-
acceptContentTypes [必需]
-string -
- -

acceptContentTypes 字段定义客户端在连接到服务器时所发送的 Accept 头部字段。 - 此设置值会覆盖默认配置 'application/json'。 - 此字段会控制某特定客户端与指定服务器的所有链接。

-
contentType [必需]
-string -
- -

contentType 字段是从此客户端向服务器发送数据时使用的内容类型(Content Type)。

-
qps [必需]
-float32 -
- -

qps 字段控制此连接上每秒钟可以发送的查询请求个数。

-
burst [必需]
-int32 -
- -

burst 字段允许客户端超出其速率限制时可以临时累积的额外查询个数。

-
- -## `DebuggingConfiguration` {#DebuggingConfiguration} - - -**出现在:** - -- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta2-KubeSchedulerConfiguration) - -- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta3-KubeSchedulerConfiguration) - -- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1-KubeSchedulerConfiguration) - -- [GenericControllerManagerConfiguration](#controllermanager-config-k8s-io-v1alpha1-GenericControllerManagerConfiguration) - - -DebuggingConfiguration 包含调试相关功能的配置。 - - - - - - - - - - - - -
字段描述
enableProfiling [Required]
-bool -
- -

enableProfiling 字段通过位于 host:port/debug/pprof/ - 的 Web 接口启用性能分析。

-
enableContentionProfiling [Required]
-bool -
- -

enableContentionProfiling 字段在 enableProfiling - 为 true 时启用阻塞分析。

-
- - -## `LeaderElectionConfiguration` {#LeaderElectionConfiguration} - - -**出现在:** - -- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta2-KubeSchedulerConfiguration) - -- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1beta3-KubeSchedulerConfiguration) - -- [KubeSchedulerConfiguration](#kubescheduler-config-k8s-io-v1-KubeSchedulerConfiguration) - -- [GenericControllerManagerConfiguration](#controllermanager-config-k8s-io-v1alpha1-GenericControllerManagerConfiguration) - - -LeaderElectionConfiguration 为能够支持领导者选举的组件定义其领导者选举客户端的配置。 - - - - - - - - - - - - - - - - - - - - - - - - - - - -
字段描述
leaderElect [必需]
-bool -
- -

- leaderElect 字段允许领导者选举客户端在进入主循环执行之前先获得领导者角色。 - 运行多副本组件时启用此功能有助于提高可用性。 -

-
leaseDuration [必需]
-meta/v1.Duration -
- -

- leaseDuration 字段是非领导角色候选者在观察到需要领导席位更新时要等待的时间; - 只有经过所设置时长才可以尝试去获得一个仍处于领导状态但需要被刷新的席位。 - 这里的设置值本质上意味着某个领导者在被另一个候选者替换掉之前可以停止运行的最长时长。 - 只有当启用了领导者选举时此字段有意义。 -

-
renewDeadline [必需]
-meta/v1.Duration -
- -

- renewDeadline 字段设置的是当前领导者在停止扮演领导角色之前需要刷新领导状态的时间间隔。 - 此值必须小于或等于租约期限的长度。只有到启用了领导者选举时此字段才有意义。 -

-
retryPeriod [必需]
-meta/v1.Duration -
- -

- retryPeriod 字段是客户端在连续两次尝试获得或者刷新领导状态之间需要等待的时长。 - 只有当启用了领导者选举时此字段才有意义。 -

-
resourceLock [必需]
-string -
- -

resourceLock 字段给出在领导者选举期间要作为锁来使用的资源对象类型。

-
resourceName [必需]
-string -
- -

resourceName 字段给出在领导者选举期间要作为锁来使用的资源对象名称。

-
resourceNamespace [必需]
-string -
- -

resourceNamespace 字段给出在领导者选举期间要作为锁来使用的资源对象所在名字空间。

-
\ No newline at end of file