ServiceCIDR
apiVersion: networking.k8s.io/v1
import "k8s.io/api/networking/v1"
ServiceCIDR
ServiceCIDR 使用 CIDR 格式(例如,192.168.0.0/24 或 2001:db2::/64)定义 IP 地址范围。此范围用于为 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 定义了用户希望为 Services 分配 ClusterIP 的 CIDR。
cidrs ([]string)
原子性:在合并期间将被替换
CIDRs 定义了用于分配 Service ClusterIP 的 CIDR 格式的 IP 块(例如,“192.168.0.0/24”或“2001:db8::/64”)。最多允许两个 CIDR,每个 IP 系列一个。此字段不可变。
ServiceCIDRStatus
ServiceCIDRStatus 描述了 ServiceCIDR 的当前状态。
conditions ([]Condition)
补丁策略:按键
type
合并映射:合并时将保留键类型上的唯一值
conditions 包含一组 metav1.Condition,用于描述 ServiceCIDR 的状态。当前 Service 状态
Condition 包含此 API 资源当前状态的一个方面的详细信息。
conditions.lastTransitionTime (Time),必需
lastTransitionTime 是条件上次从一种状态转换到另一种状态的时间。这应该是底层条件发生变化的时间。如果不知道,则使用 API 字段发生变化的时间是可接受的。
Time 是 time.Time 的一个包装器,支持正确地编组到 YAML 和 JSON。提供了 time 包提供的许多工厂方法的包装器。
conditions.message (string),必需
message 是一个人类可读的消息,指示有关转换的详细信息。这可能是一个空字符串。
conditions.reason (string),必需
reason 包含一个编程标识符,指示条件最后一次转换的原因。特定条件类型的生产者可以定义此字段的预期值和含义,以及这些值是否被视为保证的 API。该值应为 CamelCase 字符串。此字段不能为空。
conditions.status (string),必需
条件状态,True、False、Unknown 之一。
conditions.type (string),必需
条件类型,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 是 ServiceCIDRs 列表。
操作
get
读取指定的 ServiceCIDR
HTTP 请求
GET /apis/networking.k8s.io/v1/servicecidrs/{name}
参数
name (在路径中): string,必填
ServiceCIDR 的名称
pretty (在查询中): string
响应
200 (ServiceCIDR): OK
401: 未授权
get
读取指定 ServiceCIDR 的状态
HTTP 请求
GET /apis/networking.k8s.io/v1/servicecidrs/{name}/status
参数
name (在路径中): string,必填
ServiceCIDR 的名称
pretty (在查询中): string
响应
200 (ServiceCIDR): OK
401: 未授权
list
列出或监视 ServiceCIDR 类型的对象
HTTP 请求
GET /apis/networking.k8s.io/v1/servicecidrs
参数
allowWatchBookmarks (在查询中): boolean
continue (在查询中): string
fieldSelector (在查询中): string
labelSelector (在查询中): string
limit (在查询中): integer
pretty (在查询中): string
resourceVersion (在查询中): string
resourceVersionMatch (在查询中): string
sendInitialEvents (在查询中): boolean
timeoutSeconds (在查询中): integer
watch (在查询中): boolean
响应
200 (ServiceCIDRList): OK
401: 未授权
create
创建一个 ServiceCIDR
HTTP 请求
POST /apis/networking.k8s.io/v1/servicecidrs
参数
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}
参数
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
参数
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}
参数
name (在路径中): string,必填
ServiceCIDR 的名称
body: Patch,必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (在查询中): boolean
pretty (在查询中): string
响应
200 (ServiceCIDR): OK
201 (ServiceCIDR): Created
401: 未授权
patch
部分更新指定 ServiceCIDR 的状态
HTTP 请求
PATCH /apis/networking.k8s.io/v1/servicecidrs/{name}/status
参数
name (在路径中): string,必填
ServiceCIDR 的名称
body: Patch,必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (在查询中): boolean
pretty (在查询中): string
响应
200 (ServiceCIDR): OK
201 (ServiceCIDR): Created
401: 未授权
delete
删除一个 ServiceCIDR
HTTP 请求
DELETE /apis/networking.k8s.io/v1/servicecidrs/{name}
参数
name (在路径中): string,必填
ServiceCIDR 的名称
body: DeleteOptions
dryRun (在查询中): string
gracePeriodSeconds (在查询中): integer
ignoreStoreReadErrorWithClusterBreakingPotential (在查询中): boolean
pretty (在查询中): string
propagationPolicy (在查询中): string
响应
200 (Status): OK
202 (Status): 已接受
401: 未授权
deletecollection
删除 ServiceCIDR 集合
HTTP 请求
DELETE /apis/networking.k8s.io/v1/servicecidrs
参数
body: DeleteOptions
continue (在查询中): string
dryRun (在查询中): string
fieldSelector (在查询中): string
gracePeriodSeconds (在查询中): integer
ignoreStoreReadErrorWithClusterBreakingPotential (在查询中): boolean
labelSelector (在查询中): string
limit (在查询中): integer
pretty (在查询中): string
propagationPolicy (在查询中): string
resourceVersion (在查询中): string
resourceVersionMatch (在查询中): string
sendInitialEvents (在查询中): boolean
timeoutSeconds (在查询中): integer
响应
200 (Status): OK
401: 未授权
本页面是自动生成的。
如果你打算报告此页面存在的问题,请在问题描述中提及此页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。