mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
OSDOCS-9692: adds edit and delte network policy to MicroShift docs
This commit is contained in:
committed by
openshift-cherrypick-robot
parent
73ec6bba26
commit
049c7d74db
@@ -0,0 +1,12 @@
|
||||
:_mod-docs-content-type: ASSEMBLY
|
||||
[id="microshift-deleting-network-policy"]
|
||||
= Deleting a network policy
|
||||
include::_attributes/common-attributes.adoc[]
|
||||
include::_attributes/attributes-microshift.adoc[]
|
||||
:context: microshift-deleting-network-policy
|
||||
|
||||
toc::[]
|
||||
|
||||
You can delete a network policy from a namespace.
|
||||
|
||||
include::modules/nw-networkpolicy-delete-cli.adoc[leveloffset=+1]
|
||||
@@ -0,0 +1,15 @@
|
||||
:_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::[]
|
||||
|
||||
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.
|
||||
|
||||
//OCP modules, edit using conditionals
|
||||
include::modules/nw-networkpolicy-edit.adoc[leveloffset=+1]
|
||||
|
||||
include::modules/nw-networkpolicy-object.adoc[leveloffset=+1]
|
||||
Reference in New Issue
Block a user