mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
18 lines
749 B
Plaintext
18 lines
749 B
Plaintext
:_mod-docs-content-type: ASSEMBLY
|
|
[id="microshift-editing-network-policy"]
|
|
= Editing a network policy
|
|
include::_attributes/attributes-microshift.adoc[]
|
|
include::_attributes/common-attributes.adoc[]
|
|
:context: microshift-editing-network-policy
|
|
|
|
toc::[]
|
|
|
|
[role="_abstract"]
|
|
You can edit an existing network policy for a namespace.
|
|
|
|
Typical edits might include changes to the pods to which the policy applies, allowed ingress traffic, and the destination ports on which to accept traffic. The `apiVersion`, `kind`, and `name` fields must not be changed when editing `NetworkPolicy` objects, as these define the resource itself.
|
|
|
|
include::modules/nw-networkpolicy-edit.adoc[leveloffset=+1]
|
|
|
|
include::modules/nw-networkpolicy-object.adoc[leveloffset=+1]
|