mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
98 lines
2.2 KiB
Plaintext
98 lines
2.2 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * networking/cluster-network-operator.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="nw-cno-view_{context}"]
|
|
= Viewing the cluster network configuration
|
|
|
|
[role="_abstract"]
|
|
You can view your {product-title} cluster network configuration by using the `oc describe` command for the `network.config/cluster` resource.
|
|
|
|
.Procedure
|
|
|
|
* Use the `oc describe` command to view the cluster network configuration:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc describe network.config/cluster
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
Name: cluster
|
|
Namespace:
|
|
Labels: <none>
|
|
Annotations: <none>
|
|
API Version: config.openshift.io/v1
|
|
Kind: Network
|
|
Metadata:
|
|
Creation Timestamp: 2024-08-08T11:25:56Z
|
|
Generation: 3
|
|
Resource Version: 29821
|
|
UID: 808dd2be-5077-4ff7-b6bb-21b7110126c7
|
|
Spec:
|
|
Cluster Network:
|
|
Cidr: 10.128.0.0/14
|
|
Host Prefix: 23
|
|
External IP:
|
|
Policy:
|
|
Network Diagnostics:
|
|
Mode:
|
|
Source Placement:
|
|
Target Placement:
|
|
Network Type: OVNKubernetes
|
|
Service Network:
|
|
172.30.0.0/16
|
|
Status
|
|
Cluster Network:
|
|
Cidr: 10.128.0.0/14
|
|
Host Prefix: 23
|
|
Cluster Network MTU: 1360
|
|
Conditions:
|
|
Last Transition Time: 2024-08-08T11:51:50Z
|
|
Message:
|
|
Observed Generation: 0
|
|
Reason: AsExpected
|
|
Status: True
|
|
Type: NetworkDiagnosticsAvailable
|
|
Network Type: OVNKubernetes
|
|
Service Network:
|
|
172.30.0.0/16
|
|
Events: <none>
|
|
----
|
|
+
|
|
where:
|
|
|
|
`spec`:: Specifies the field that displays the configured state of the cluster network.
|
|
`Status`:: Displays the current state of the cluster network configuration.
|
|
|
|
////
|
|
* Use the `oc describe` command to view the cluster network configuration:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc describe network.operator/cluster
|
|
|
|
Name: cluster
|
|
Namespace:
|
|
Labels: <none>
|
|
Annotations: <none>
|
|
API Version: operator.openshift.io/v1
|
|
Kind: Network
|
|
Metadata:
|
|
Self Link: /apis/operator.openshift.io/v1/networks/cluster
|
|
Spec:
|
|
Cluster Network:
|
|
Cidr: 10.128.0.0/14
|
|
Host Prefix: 23
|
|
Default Network:
|
|
Type: OVNKubernetes
|
|
Service Network:
|
|
172.30.0.0/16
|
|
Status:
|
|
Events: <none>
|
|
----
|
|
////
|