1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

Merge pull request #72638 from openshift-cherrypick-robot/cherry-pick-72311-to-enterprise-4.16

[enterprise-4.16] OSDOCS-9742: add view a NP to MicroShift
This commit is contained in:
Shauna Diaz
2024-03-05 12:14:10 -05:00
committed by GitHub
3 changed files with 20 additions and 3 deletions

View File

@@ -413,6 +413,8 @@ Topics:
File: microshift-editing-network-policy
- Name: Deleting network policies
File: microshift-deleting-network-policy
- Name: Viewing network policies
File: microshift-viewing-network-policy
- Name: Firewall configuration
File: microshift-firewall
- Name: Networking settings for fully disconnected hosts

View File

@@ -0,0 +1,12 @@
:_mod-docs-content-type: ASSEMBLY
[id="microshift-viewing-network-policy"]
= Viewing a network policy
include::_attributes/common-attributes.adoc[]
include::_attributes/attributes-microshift.adoc[]
:context: microshift-viewing-network-policy
toc::[]
Use the following procedure to view a network policy for a namespace.
include::modules/nw-networkpolicy-view-cli.adoc[leveloffset=+1]

View File

@@ -18,17 +18,19 @@ endif::[]
You can examine the {name} policies in a namespace.
ifndef::multi[]
ifndef::multi,microshift[]
[NOTE]
====
If you log in with a user with the `cluster-admin` role, then you can view any network policy in the cluster.
====
endif::multi[]
endif::multi,microshift[]
.Prerequisites
* You installed the OpenShift CLI (`oc`).
ifndef::microshift[]
* You are logged in to the cluster with a user with `{role}` privileges.
endif::microshift[]
* You are working in the namespace where the {name} policy exists.
.Procedure
@@ -90,8 +92,9 @@ endif::multi[]
:!name:
:!role:
ifndef::microshift[]
[NOTE]
====
If you log in to the web console with `cluster-admin` privileges, you have a choice of viewing a network policy in any namespace in the cluster directly in YAML or from a form in the web console.
====
endif::microshift[]