Merge pull request #36391 from windsonsea/netpol
[zh] Sync1.25 kubernetes-api/policy-resources/pull/36413/head
commit
fe1cb0ed74
|
@ -24,7 +24,6 @@ auto_generated: true
|
|||
|
||||
`import "k8s.io/api/networking/v1"`
|
||||
|
||||
|
||||
## NetworkPolicy {#NetworkPolicy}
|
||||
|
||||
<!--
|
||||
|
@ -86,7 +85,7 @@ NetworkPolicySpec 定义特定 NetworkPolicy 所需的所有信息.
|
|||
-->
|
||||
- **policyTypes** ([]string)
|
||||
|
||||
NetworkPolicy 相关的规则类型列表。 有效选项为 `[“Ingress”]`,`[“Egress”]` 或 `[“Ingress”, “Egress”]`。
|
||||
NetworkPolicy 相关的规则类型列表。有效选项为 `[“Ingress”]`、`[“Egress”]` 或 `[“Ingress”, “Egress”]`。
|
||||
如果不指定此字段,则默认值取决是否存在 Ingress 或 Egress 规则;规则里包含 Egress 部分的策略将会影响出站流量,
|
||||
并且所有策略(无论它们是否包含 Ingress 部分)都将会影响 入站流量。
|
||||
如果要仅定义出站流量策略,则必须明确指定 `[ "Egress" ]`。
|
||||
|
@ -129,7 +128,7 @@ NetworkPolicySpec 定义特定 NetworkPolicy 所需的所有信息.
|
|||
此规则才允许流量访问被选中的 Pod 集合。
|
||||
|
||||
<a name="NetworkPolicyPeer"></a>
|
||||
**NetworkPolicyPeer 描述了允许进出流量的对等点。 这个参数只允许某些字段组合**
|
||||
**NetworkPolicyPeer 描述了允许进出流量的对等点。这个参数只允许某些字段组合。**
|
||||
|
||||
<!--
|
||||
- **ingress.from.ipBlock** (IPBlock)
|
||||
|
@ -159,7 +158,7 @@ NetworkPolicySpec 定义特定 NetworkPolicy 所需的所有信息.
|
|||
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range
|
||||
-->
|
||||
|
||||
- **ingress.from.ipBlock.cidr** (string), 必需
|
||||
- **ingress.from.ipBlock.cidr** (string),必需
|
||||
|
||||
CIDR 是指定 IP 组块的字符串,例如 `"192.168.1.1/24"` 或 `"2001:db9::/64"`。
|
||||
|
||||
|
@ -182,8 +181,8 @@ NetworkPolicySpec 定义特定 NetworkPolicy 所需的所有信息.
|
|||
此选择器使用集群范围标签来选择特定的 Namespace。此字段遵循标准标签选择算符语义;
|
||||
如果此字段存在但为空值,则会选择所有名字空间。
|
||||
|
||||
如果 podSelector 也被定义了, 那么 NetworkPolicyPeer 将选择那些同时满足 namespaceSelector 所选名字空间下
|
||||
和 podSelector 规则匹配的 Pod。
|
||||
如果 podSelector 也被定义了, 那么 NetworkPolicyPeer 将选择那些同时满足 namespaceSelector
|
||||
所选名字空间下和 podSelector 规则匹配的 Pod。
|
||||
反之选择 namespaceSelector 所选名字空间下所有的 Pod。
|
||||
|
||||
<!--
|
||||
|
@ -198,8 +197,8 @@ NetworkPolicySpec 定义特定 NetworkPolicy 所需的所有信息.
|
|||
|
||||
这个标签选择算符负责选择 Pod。该字段遵循标准标签选择算符语义;如果字段存在但为空值,则选择所有 Pod。
|
||||
|
||||
如果 namespaceSelector 也被定义,那么 NetworkPolicyPeer 将选择那些同时满足 namespaceSelector 定义的名字空间下
|
||||
和 podSelector 规则匹配的 Pod。
|
||||
如果 namespaceSelector 也被定义,那么 NetworkPolicyPeer 将选择那些同时满足 namespaceSelector
|
||||
定义的名字空间下和 podSelector 规则匹配的 Pod。
|
||||
反之会在策略所在的名字空间中选择与 podSelector 匹配的 Pod。
|
||||
|
||||
<!--
|
||||
|
@ -241,7 +240,7 @@ NetworkPolicySpec 定义特定 NetworkPolicy 所需的所有信息.
|
|||
<!--
|
||||
- **ingress.ports.endPort** (int32)
|
||||
|
||||
If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. This feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate "NetworkPolicyEndPort".
|
||||
If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.
|
||||
|
||||
- **ingress.ports.protocol** (string)
|
||||
|
||||
|
@ -252,7 +251,7 @@ NetworkPolicySpec 定义特定 NetworkPolicy 所需的所有信息.
|
|||
|
||||
如果设置了此字段,则表明策略应该允许 port 与 endPort 之间(包含二者)的所有端口。
|
||||
如果未定义 port 或将 port 字段值为命名端口(字符串),则不可以使用 endPort。
|
||||
endPort 必须等于或大于 port 值。此功能是 Beta 阶段,默认启用。可以使用 “NetworkPolicyEndPort” 特性门控来禁用 endPort 。
|
||||
endPort 必须等于或大于 port 值。
|
||||
|
||||
- **ingress.ports.protocol** (string)
|
||||
|
||||
|
@ -311,9 +310,9 @@ NetworkPolicySpec 定义特定 NetworkPolicy 所需的所有信息.
|
|||
ipBlock 针对特定的 IP 区块定义策略。如果设置了此字段,则其他不可以设置其他字段。
|
||||
|
||||
<a name="IPBlock"></a>
|
||||
IPBlock 描述一个特定的 CIDR 范围(例如 `192.168.1.1/24`、`2001:db9::/64`),
|
||||
**IPBlock 描述一个特定的 CIDR 范围(例如 `192.168.1.1/24`、`2001:db9::/64`),
|
||||
与 NetworkPolicySpec 的 podSelector 匹配的 Pod 将被允许连接到这个 IP 范围,作为其出口流量目的地。
|
||||
except 字段则设置了不被此规则影响的 CIDR 范围。
|
||||
except 字段则设置了不被此规则影响的 CIDR 范围。**
|
||||
|
||||
<!--
|
||||
- **egress.to.ipBlock.cidr** (string), required
|
||||
|
@ -325,7 +324,7 @@ NetworkPolicySpec 定义特定 NetworkPolicy 所需的所有信息.
|
|||
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range
|
||||
-->
|
||||
|
||||
- **egress.to.ipBlock.cidr** (string), 必需
|
||||
- **egress.to.ipBlock.cidr** (string),必需
|
||||
|
||||
CIDR 是用来表达 IP 组块的字符串,例如 `"192.168.1.1/24"` 或 `"2001:db9::/64"`。
|
||||
|
||||
|
@ -344,10 +343,11 @@ NetworkPolicySpec 定义特定 NetworkPolicy 所需的所有信息.
|
|||
|
||||
- **egress.to.namespaceSelector** (<a href="{{< ref "../common-definitions/label-selector#LabelSelector" >}}">LabelSelector</a>)
|
||||
|
||||
此选择算符使用集群范围标签来选择特定的名字空间。该字段遵循标准标签选择算符语义;如果字段存在但为空值,那会选择所有名字空间。
|
||||
此选择算符使用集群范围标签来选择特定的名字空间。该字段遵循标准标签选择算符语义;
|
||||
如果字段存在但为空值,那会选择所有名字空间。
|
||||
|
||||
如果 egress.to.podSelector 也被定义了, 那么 NetworkPolicyPeer 将选择那些同时满足 namespaceSelector 指定的名字空间下
|
||||
和 podSelector 规则匹配的 Pod。
|
||||
如果 egress.to.podSelector 也被定义了, 那么 NetworkPolicyPeer 将选择那些同时满足 namespaceSelector
|
||||
指定的名字空间下和 podSelector 规则匹配的 Pod。
|
||||
反之选择 namespaceSelector 指定的名字空间下所有的 Pod。
|
||||
|
||||
<!--
|
||||
|
@ -360,10 +360,11 @@ NetworkPolicySpec 定义特定 NetworkPolicy 所需的所有信息.
|
|||
|
||||
- **egress.to.podSelector** (<a href="{{< ref "../common-definitions/label-selector#LabelSelector" >}}">LabelSelector</a>)
|
||||
|
||||
这个标签选择器负责选择一组 Pod。该字段遵循标准标签选择算符语义; 如果字段存在但为空值,则选择所有 Pod。
|
||||
这个标签选择器负责选择一组 Pod。该字段遵循标准标签选择算符语义;
|
||||
如果字段存在但为空值,则选择所有 Pod。
|
||||
|
||||
如果 egress.to.namespaceSelector 也被定义,则 NetworkPolicyPeer 将选择 namespaceSelector 所指定的名字空间下
|
||||
和 podSelector 规则匹配的 Pod。
|
||||
如果 egress.to.namespaceSelector 也被定义,则 NetworkPolicyPeer 将选择 namespaceSelector
|
||||
所指定的名字空间下和 podSelector 规则匹配的 Pod。
|
||||
反之会在策略所属的名字空间中选择与 podSelector 匹配的 Pod。
|
||||
|
||||
<!--
|
||||
|
@ -382,7 +383,7 @@ NetworkPolicySpec 定义特定 NetworkPolicy 所需的所有信息.
|
|||
则此规则仅在流量与列表中的至少一个端口匹配时才允许访问。
|
||||
|
||||
<a name="NetworkPolicyPort"></a>
|
||||
**NetworkPolicyPort 定义出口流量目的地的端口**
|
||||
**NetworkPolicyPort 定义出口流量目的地的端口。**
|
||||
|
||||
<!--
|
||||
- **egress.ports.port** (IntOrString)
|
||||
|
@ -394,7 +395,7 @@ NetworkPolicySpec 定义特定 NetworkPolicy 所需的所有信息.
|
|||
|
||||
- **egress.ports.endPort** (int32)
|
||||
|
||||
If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. This feature is in Beta state and is enabled by default. It can be disabled using the Feature Gate "NetworkPolicyEndPort".
|
||||
If set, indicates that the range of ports from port to endPort, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.
|
||||
|
||||
- **egress.ports.protocol** (string)
|
||||
|
||||
|
@ -414,7 +415,7 @@ NetworkPolicySpec 定义特定 NetworkPolicy 所需的所有信息.
|
|||
|
||||
如果设置了 endPort,则用来指定策略所允许的从 port 到 endPort 的端口范围(包含边界值)。
|
||||
如果未设置 port 或 port 字段值为端口名称(字符串),则不可以指定 endPort。
|
||||
endPort 必须等于或大于 port 值。此功能是 Beta 阶段,默认被启用。可以使用 “NetworkPolicyEndPort” 特性门控来禁用 endPort 。
|
||||
endPort 必须等于或大于 port 值。
|
||||
|
||||
- **egress.ports.protocol** (string)
|
||||
|
||||
|
@ -463,14 +464,14 @@ NetworkPolicyStatus 描述有关此 NetworkPolicy 的当前状态。
|
|||
*Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.*
|
||||
-->
|
||||
|
||||
- **conditions.lastTransitionTime** (Time), 必需
|
||||
- **conditions.lastTransitionTime** (Time),必需
|
||||
|
||||
lastTransitionTime 是状况最近一次从一种状态转换到另一种状态的时间。
|
||||
这种变化通常出现在下层状况发生变化的时候。如果无法了解下层状况变化,使用 API 字段更改的时间也是可以接受的。
|
||||
|
||||
<a name="Time"></a>
|
||||
Time 是 time.Time 的包装器,它支持对 YAML 和 JSON 的正确编组。
|
||||
time 包的许多工厂方法提供了包装器。
|
||||
**Time 是 time.Time 的包装器,它支持对 YAML 和 JSON 的正确编组。
|
||||
time 包的许多工厂方法提供了包装器。**
|
||||
|
||||
<!--
|
||||
- **conditions.message** (string), required
|
||||
|
@ -478,7 +479,7 @@ NetworkPolicyStatus 描述有关此 NetworkPolicy 的当前状态。
|
|||
message is a human readable message indicating details about the transition. This may be an empty string.
|
||||
-->
|
||||
|
||||
- **conditions.message** (string), 必需
|
||||
- **conditions.message** (string),必需
|
||||
|
||||
message 是一条人类可读的消息,指示有关转换的详细信息。它可能是一个空字符串。
|
||||
|
||||
|
@ -488,7 +489,7 @@ NetworkPolicyStatus 描述有关此 NetworkPolicy 的当前状态。
|
|||
reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
|
||||
-->
|
||||
|
||||
- **conditions.reason** (string), 必需
|
||||
- **conditions.reason** (string),必需
|
||||
|
||||
reason 包含一个程序标识符,指示状况最后一次转换的原因。
|
||||
特定状况类型的生产者可以定义该字段的预期值和含义,以及这些值是否可被视为有保证的 API。
|
||||
|
@ -500,7 +501,7 @@ NetworkPolicyStatus 描述有关此 NetworkPolicy 的当前状态。
|
|||
status of the condition, one of True, False, Unknown.
|
||||
-->
|
||||
|
||||
- **conditions.status** (string), 必需
|
||||
- **conditions.status** (string),必需
|
||||
|
||||
状况的状态为 True、False、Unknown 之一。
|
||||
|
||||
|
@ -510,7 +511,7 @@ NetworkPolicyStatus 描述有关此 NetworkPolicy 的当前状态。
|
|||
type of condition in CamelCase or in foo.example.com/CamelCase.
|
||||
-->
|
||||
|
||||
- **conditions.type** (string), 必需
|
||||
- **conditions.type** (string),必需
|
||||
|
||||
CamelCase 或 foo.example.com/CamelCase 形式的状况类型。
|
||||
|
||||
|
@ -526,7 +527,6 @@ NetworkPolicyStatus 描述有关此 NetworkPolicy 的当前状态。
|
|||
例如,如果 `.metadata.generation` 当前为 12,但 `.status.conditions[x].observedGeneration` 为 9,
|
||||
则状况相对于实例的当前状态已过期。
|
||||
|
||||
|
||||
## NetworkPolicyList {#NetworkPolicyList}
|
||||
|
||||
<!--
|
||||
|
@ -539,10 +539,8 @@ NetworkPolicyList 是 NetworkPolicy 的集合。
|
|||
|
||||
- **apiVersion**: networking.k8s.io/v1
|
||||
|
||||
|
||||
- **kind**: NetworkPolicyList
|
||||
|
||||
|
||||
<!--
|
||||
- **metadata** (<a href="{{< ref "../common-definitions/list-meta#ListMeta" >}}">ListMeta</a>)
|
||||
|
||||
|
@ -560,11 +558,10 @@ NetworkPolicyList 是 NetworkPolicy 的集合。
|
|||
Items is a list of schema objects.
|
||||
-->
|
||||
|
||||
- **items** ([]<a href="{{< ref "../policy-resources/network-policy-v1#NetworkPolicy" >}}">NetworkPolicy</a>), 必需
|
||||
- **items** ([]<a href="{{< ref "../policy-resources/network-policy-v1#NetworkPolicy" >}}">NetworkPolicy</a>),必需
|
||||
|
||||
items 是 NetworkPolicy 的列表。
|
||||
|
||||
|
||||
## 操作 {#Operations}
|
||||
|
||||
<hr>
|
||||
|
@ -591,7 +588,7 @@ GET /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}
|
|||
|
||||
name of the NetworkPolicy
|
||||
-->
|
||||
- **name** (**路径参数**): string, 必需
|
||||
- **name** (**路径参数**): string,必需
|
||||
|
||||
NetworkPolicy 的名称。
|
||||
|
||||
|
@ -600,7 +597,7 @@ GET /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
-->
|
||||
- **namespace** (**路径参数**): string, 必需
|
||||
- **namespace** (**路径参数**): string,必需
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
|
||||
|
@ -642,7 +639,7 @@ GET /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/sta
|
|||
|
||||
name of the NetworkPolicy
|
||||
-->
|
||||
- **name** (**路径参数**): string, 必需
|
||||
- **name** (**路径参数**): string,必需
|
||||
|
||||
NetworkPolicy 的名称。
|
||||
|
||||
|
@ -651,7 +648,7 @@ GET /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/sta
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
-->
|
||||
- **namespace** (**路径参数**): string, 必需
|
||||
- **namespace** (**路径参数**): string,必需
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
|
||||
|
@ -695,7 +692,7 @@ GET /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
-->
|
||||
- **namespace** (**路径参数**): string, 必需
|
||||
- **namespace** (**路径参数**): string,必需
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
|
||||
|
@ -858,7 +855,6 @@ GET /apis/networking.k8s.io/v1/networkpolicies
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
|
||||
|
||||
|
||||
<!--
|
||||
- **pretty** (*in query*): string
|
||||
|
||||
|
@ -877,7 +873,6 @@ GET /apis/networking.k8s.io/v1/networkpolicies
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
|
||||
|
||||
|
||||
<!--
|
||||
- **resourceVersionMatch** (*in query*): string
|
||||
|
||||
|
@ -936,26 +931,23 @@ POST /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
-->
|
||||
- **namespace** (**路径参数**): string, 必需
|
||||
- **namespace** (**路径参数**): string,必需
|
||||
|
||||
- **body**: <a href="{{< ref "../policy-resources/network-policy-v1#NetworkPolicy" >}}">NetworkPolicy</a>, 必需
|
||||
- **body**: <a href="{{< ref "../policy-resources/network-policy-v1#NetworkPolicy" >}}">NetworkPolicy</a>,必需
|
||||
|
||||
<!--
|
||||
- **dryRun** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||
|
||||
|
||||
- **fieldManager** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
|
||||
|
||||
|
||||
- **fieldValidation** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
|
||||
|
||||
|
||||
- **pretty** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
|
@ -965,17 +957,14 @@ POST /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||
|
||||
|
||||
- **fieldManager** (**查询参数**): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
|
||||
|
||||
|
||||
- **fieldValidation** (**查询参数**): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
|
||||
|
||||
|
||||
- **pretty** (**查询参数**): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
|
@ -1015,7 +1004,7 @@ PUT /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}
|
|||
|
||||
name of the NetworkPolicy
|
||||
-->
|
||||
- **name** (**路径参数**): string, 必需
|
||||
- **name** (**路径参数**): string,必需
|
||||
|
||||
NetworkPolicy 的名称。
|
||||
|
||||
|
@ -1024,12 +1013,12 @@ PUT /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
-->
|
||||
- **namespace** (**路径参数**): string, 必需
|
||||
- **namespace** (**路径参数**): string,必需
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
|
||||
<!--
|
||||
- **body**: <a href="{{< ref "../policy-resources/network-policy-v1#NetworkPolicy" >}}">NetworkPolicy</a>, 必需
|
||||
- **body**: <a href="{{< ref "../policy-resources/network-policy-v1#NetworkPolicy" >}}">NetworkPolicy</a>,必需
|
||||
|
||||
- **dryRun** (*in query*): string
|
||||
|
||||
|
@ -1047,7 +1036,7 @@ PUT /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
-->
|
||||
- **body**: <a href="{{< ref "../policy-resources/network-policy-v1#NetworkPolicy" >}}">NetworkPolicy</a>, 必需
|
||||
- **body**: <a href="{{< ref "../policy-resources/network-policy-v1#NetworkPolicy" >}}">NetworkPolicy</a>,必需
|
||||
|
||||
- **dryRun** (**查询参数**): string
|
||||
|
||||
|
@ -1097,7 +1086,7 @@ PUT /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/sta
|
|||
|
||||
name of the NetworkPolicy
|
||||
-->
|
||||
- **name** (**路径参数**): string, 必需
|
||||
- **name** (**路径参数**): string,必需
|
||||
|
||||
NetworkPolicy 的名称。
|
||||
|
||||
|
@ -1106,12 +1095,12 @@ PUT /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/sta
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
-->
|
||||
- **namespace** (**路径参数**): string, 必需
|
||||
- **namespace** (**路径参数**): string,必需
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
|
||||
<!--
|
||||
- **body**: <a href="{{< ref "../policy-resources/network-policy-v1#NetworkPolicy" >}}">NetworkPolicy</a>, 必需
|
||||
- **body**: <a href="{{< ref "../policy-resources/network-policy-v1#NetworkPolicy" >}}">NetworkPolicy</a>,必需
|
||||
|
||||
- **dryRun** (*in query*): string
|
||||
|
||||
|
@ -1129,7 +1118,7 @@ PUT /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/sta
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
-->
|
||||
- **body**: <a href="{{< ref "../policy-resources/network-policy-v1#NetworkPolicy" >}}">NetworkPolicy</a>, 必需
|
||||
- **body**: <a href="{{< ref "../policy-resources/network-policy-v1#NetworkPolicy" >}}">NetworkPolicy</a>,必需
|
||||
|
||||
- **dryRun** (**查询参数**): string
|
||||
|
||||
|
@ -1179,7 +1168,7 @@ PATCH /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}
|
|||
|
||||
name of the NetworkPolicy
|
||||
-->
|
||||
- **name** (**路径参数**): string, 必需
|
||||
- **name** (**路径参数**): string,必需
|
||||
|
||||
NetworkPolicy 的名称。
|
||||
|
||||
|
@ -1188,7 +1177,7 @@ PATCH /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
-->
|
||||
- **namespace** (**路径参数**): string, 必需
|
||||
- **namespace** (**路径参数**): string,必需
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
|
||||
|
@ -1215,7 +1204,7 @@ PATCH /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
-->
|
||||
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>, 必需
|
||||
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>,必需
|
||||
|
||||
- **dryRun** (**查询参数**): string
|
||||
|
||||
|
@ -1269,7 +1258,7 @@ PATCH /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/s
|
|||
|
||||
name of the NetworkPolicy
|
||||
-->
|
||||
- **name** (**路径参数**): string, 必需
|
||||
- **name** (**路径参数**): string,必需
|
||||
|
||||
NetworkPolicy 的名称。
|
||||
|
||||
|
@ -1278,7 +1267,7 @@ PATCH /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/s
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
-->
|
||||
- **namespace** (**路径参数**): string, 必需
|
||||
- **namespace** (**路径参数**): string,必需
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
|
||||
|
@ -1305,7 +1294,7 @@ PATCH /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/s
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
-->
|
||||
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>, 必需
|
||||
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>,必需
|
||||
|
||||
- **dryRun** (**查询参数**): string
|
||||
|
||||
|
@ -1381,28 +1370,24 @@ DELETE /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a>
|
||||
-->
|
||||
- **name** (**路径参数**): string, 必需
|
||||
- **name** (**路径参数**): string,必需
|
||||
|
||||
name of the NetworkPolicy
|
||||
NetworkPolicy 的名称。
|
||||
|
||||
|
||||
- **namespace** (**路径参数**): string, 必需
|
||||
- **namespace** (**路径参数**): string,必需
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
|
||||
|
||||
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
|
||||
|
||||
- **dryRun** (**查询参数**): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||
|
||||
|
||||
- **gracePeriodSeconds** (**查询参数**): integer
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
|
||||
|
||||
|
||||
- **pretty** (**查询参数**): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
|
@ -1481,7 +1466,6 @@ s
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
|
||||
|
||||
|
||||
- **resourceVersionMatch** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
|
||||
|
@ -1490,7 +1474,7 @@ s
|
|||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
|
||||
-->
|
||||
- **namespace** (**路径参数**): string, 必需
|
||||
- **namespace** (**路径参数**): string,必需
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue