mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
111 lines
2.6 KiB
Plaintext
111 lines
2.6 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * networking/network_observability/troubleshooting-network-observability.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="configure-network-traffic-console_{context}"]
|
|
= Configuring network traffic menu entry in the {product-title} console
|
|
|
|
[role="_abstract"]
|
|
Restore a missing network traffic menu entry in the *Observe* menu of the {product-title} console by manually registering the console plugin in the `FlowCollector` resource and the console operator configuration.
|
|
|
|
.Prerequisites
|
|
|
|
* You have installed {product-title} version 4.10 or newer.
|
|
|
|
.Procedure
|
|
|
|
. Check if the `spec.consolePlugin.register` field is set to `true` by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc -n netobserv get flowcollector cluster -o yaml
|
|
----
|
|
+
|
|
.Example output
|
|
----
|
|
apiVersion: flows.netobserv.io/v1alpha1
|
|
kind: FlowCollector
|
|
metadata:
|
|
name: cluster
|
|
spec:
|
|
consolePlugin:
|
|
register: false
|
|
----
|
|
|
|
. Optional: Add the `netobserv-plugin` plugin by manually editing the Console Operator config:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc edit console.operator.openshift.io cluster
|
|
----
|
|
+
|
|
.Example output
|
|
----
|
|
...
|
|
spec:
|
|
plugins:
|
|
- netobserv-plugin
|
|
...
|
|
----
|
|
|
|
. Optional: Set the `spec.consolePlugin.register` field to `true` by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc -n netobserv edit flowcollector cluster -o yaml
|
|
----
|
|
+
|
|
.Example output
|
|
----
|
|
apiVersion: flows.netobserv.io/v1alpha1
|
|
kind: FlowCollector
|
|
metadata:
|
|
name: cluster
|
|
spec:
|
|
consolePlugin:
|
|
register: true
|
|
----
|
|
|
|
. Ensure the status of console pods is `running` by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get pods -n openshift-console -l app=console
|
|
----
|
|
|
|
. Restart the console pods by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc delete pods -n openshift-console -l app=console
|
|
----
|
|
|
|
. Clear your browser cache and history.
|
|
|
|
. Check the status of network observability plugin pods by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get pods -n netobserv -l app=netobserv-plugin
|
|
----
|
|
+
|
|
.Example output
|
|
----
|
|
NAME READY STATUS RESTARTS AGE
|
|
netobserv-plugin-68c7bbb9bb-b69q6 1/1 Running 0 21s
|
|
----
|
|
|
|
. Check the logs of the network observability plugin pods by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc logs -n netobserv -l app=netobserv-plugin
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
time="2022-12-13T12:06:49Z" level=info msg="Starting netobserv-console-plugin [build version: , build date: 2022-10-21 15:15] at log level info" module=main
|
|
time="2022-12-13T12:06:49Z" level=info msg="listening on https://:9001" module=server
|
|
---- |