mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
OSDOCS-9742: add view a NP to MicroShift
This commit is contained in:
committed by
openshift-cherrypick-robot
parent
36e0a658e0
commit
775e4bfe44
@@ -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
|
||||
|
||||
@@ -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]
|
||||
@@ -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[]
|
||||
Reference in New Issue
Block a user