ServiceCIDR
apiVersion: networking.k8s.io/v1
import "k8s.io/api/networking/v1"
ServiceCIDR
ServiceCIDR 定义使用 CIDR 格式的 IP 地址范围(例如 192.168.0.0/24 或 2001:db2::/64)。该范围用于为 Service 对象分配 ClusterIP。
apiVersion: networking.k8s.io/v1
kind: ServiceCIDR
metadata (ObjectMeta)
标准对象的元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec (ServiceCIDRSpec)
spec 是 ServiceCIDR 的期望状态。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
status (ServiceCIDRStatus)
status 表示 ServiceCIDR 的当前状态。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
ServiceCIDRSpec
ServiceCIDRSpec 定义用户希望用于为 Service 分配 ClusterIP 的 CIDR。
cidrs ([]string)
原子:将在合并期间被替换
CIDRs 定义用于分配 Service 集群 IP 的 CIDR 表示法中的 IP 块(例如 "192.168.0.0/24" 或 "2001:db8::/64")。允许最多两个 CIDR,每个 IP 族一个。此字段是不可变的。
ServiceCIDRStatus
ServiceCIDRStatus 描述 ServiceCIDR 的当前状态。
conditions ([]Condition)
Patch 策略:在键
type上合并映射:在合并期间将保留键类型上的唯一值
conditions 包含一个 metav1.Condition 数组,用于描述 ServiceCIDR 的状态。当前服务状态
Condition 包含此 API 资源当前状态的一个方面的详细信息。
conditions.lastTransitionTime (Time), required
lastTransitionTime 是条件从一个状态过渡到另一个状态的最后时间。这应该是在底层条件发生变化时的时间。如果不知道,则使用 API 字段发生变化的时间是可以接受的。
Time 是 time.Time 的包装器,支持正确地编组到 YAML 和 JSON。为时间包提供的许多工厂方法提供包装器。
conditions.message (string), required
message 是一个人类可读的消息,指示过渡的详细信息。这可能是一个空字符串。
conditions.reason (string), required
reason 包含一个编程标识符,指示条件最后一次过渡的原因。特定条件类型的生产者可以定义此字段的预期值和含义,以及这些值是否被认为是保证的 API。该值应该是 CamelCase 字符串。此字段不能为空。
conditions.status (string), required
条件的 status,可以是 True、False 或 Unknown。
conditions.type (string), required
条件的类型,采用 CamelCase 格式或 foo.example.com/CamelCase 格式。
conditions.observedGeneration (int64)
observedGeneration 表示基于 .metadata.generation 设置条件的生成。例如,如果 .metadata.generation 当前为 12,但 .status.conditions[x].observedGeneration 为 9,则该条件相对于实例的当前状态已过时。
ServiceCIDRList
ServiceCIDRList 包含 ServiceCIDR 对象的列表。
apiVersion: networking.k8s.io/v1
kind: ServiceCIDRList
metadata (ListMeta)
标准对象的元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
items ([]ServiceCIDR), required
items 是 ServiceCIDR 的列表。
操作
get 读取指定的 ServiceCIDR
HTTP 请求
GET /apis/networking.k8s.io/v1/servicecidrs/{name}
Parameters
name (在路径中): string, 必需
ServiceCIDR 的名称
pretty (在查询中): string
响应
200 (ServiceCIDR): OK
401: 未授权
get 读取指定 ServiceCIDR 的状态
HTTP 请求
GET /apis/networking.k8s.io/v1/servicecidrs/{name}/status
Parameters
name (在路径中): string, 必需
ServiceCIDR 的名称
pretty (在查询中): string
响应
200 (ServiceCIDR): OK
401: 未授权
list 列出或监视 ServiceCIDR 类型的对象
HTTP 请求
GET /apis/networking.k8s.io/v1/servicecidrs
Parameters
allowWatchBookmarks (in query): boolean
continue (in query): string
fieldSelector (in query): string
labelSelector (in query): string
limit (in query): integer
pretty (在查询中): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
watch (in query): boolean
响应
200 (ServiceCIDRList): OK
401: 未授权
create 创建一个 ServiceCIDR
HTTP 请求
POST /apis/networking.k8s.io/v1/servicecidrs
Parameters
body: ServiceCIDR, required
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
200 (ServiceCIDR): OK
201 (ServiceCIDR): Created
202 (ServiceCIDR): Accepted
401: 未授权
update 替换指定的 ServiceCIDR
HTTP 请求
PUT /apis/networking.k8s.io/v1/servicecidrs/{name}
Parameters
name (在路径中): string, 必需
ServiceCIDR 的名称
body: ServiceCIDR, required
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
200 (ServiceCIDR): OK
201 (ServiceCIDR): Created
401: 未授权
update 替换指定 ServiceCIDR 的状态
HTTP 请求
PUT /apis/networking.k8s.io/v1/servicecidrs/{name}/status
Parameters
name (在路径中): string, 必需
ServiceCIDR 的名称
body: ServiceCIDR, required
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
响应
200 (ServiceCIDR): OK
201 (ServiceCIDR): Created
401: 未授权
patch 部分更新指定的 ServiceCIDR
HTTP 请求
PATCH /apis/networking.k8s.io/v1/servicecidrs/{name}
Parameters
name (在路径中): string, 必需
ServiceCIDR 的名称
body: Patch, 必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (in query): boolean
pretty (在查询中): string
响应
200 (ServiceCIDR): OK
201 (ServiceCIDR): Created
401: 未授权
patch 部分更新指定 ServiceCIDR 的状态
HTTP 请求
PATCH /apis/networking.k8s.io/v1/servicecidrs/{name}/status
Parameters
name (在路径中): string, 必需
ServiceCIDR 的名称
body: Patch, 必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (in query): boolean
pretty (在查询中): string
响应
200 (ServiceCIDR): OK
201 (ServiceCIDR): Created
401: 未授权
delete 删除一个 ServiceCIDR
HTTP 请求
DELETE /apis/networking.k8s.io/v1/servicecidrs/{name}
Parameters
name (在路径中): string, 必需
ServiceCIDR 的名称
body: DeleteOptions
dryRun (在查询中): string
gracePeriodSeconds (in query): integer
ignoreStoreReadErrorWithClusterBreakingPotential (in query): boolean
pretty (在查询中): string
propagationPolicy (in query): string
响应
200 (Status): 确定
202 (Status): 已接受
401: 未授权
deletecollection 删除 ServiceCIDR 集合
HTTP 请求
DELETE /apis/networking.k8s.io/v1/servicecidrs
Parameters
body: DeleteOptions
continue (in query): string
dryRun (在查询中): string
fieldSelector (in query): string
gracePeriodSeconds (in query): integer
ignoreStoreReadErrorWithClusterBreakingPotential (in query): boolean
labelSelector (in query): string
limit (in query): integer
pretty (在查询中): string
propagationPolicy (in query): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
响应
200 (Status): 确定
401: 未授权
本页面是自动生成的。
如果您打算报告此页面的问题,请在您的问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。