大网数据广告活动
Kubernetes 部署与运维

WebhookClientConfig

· 52CE 我爱测

`apiVersion: admissionregistration.k8s.io/v1`

apiVersion: admissionregistration.k8s.io/v1

import "k8s.io/api/admissionregistration/v1"

WebhookClientConfig {#WebhookClientConfig}

WebhookClientConfig contains the information to make a TLS connection with the webhook

<hr>

<table> <thead><tr><th>Field</th><th>Description</th></tr></thead> <tbody> <tr> <td><code>caBundle</code><br/><em>string</em></td> <td>caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.</td> </tr> <tr> <td><code>service</code><br/><em><a href="">ServiceReference</a></em></td> <td>service is a reference to the service for this webhook. Either service or url must be specified. If the webhook is running within the cluster, then you should use service.</td> </tr> <tr> <td><code>url</code><br/><em>string</em></td> <td>url gives the location of the webhook, in standard URL form (scheme://host:port/path). Exactly one of url or service must be specified. The host should not refer to a service running in the cluster; use the service field instead. The host might be resolved via external DNS in some apiservers (e.g., kube-apiserver cannot resolve in-cluster DNS as that would be a layering violation). host may also be an IP address. Please note that using localhost or 127.0.0.1 as a host is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be "https"; the URL must begin with "https://". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either.</td> </tr> </tbody> </table>

来源:Kubernetes 文档贡献者 · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
Kubernetes 文档贡献者
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。