Configuring network traffic menu entry in the Red Hat OpenShift Container Platform console
Restore a missing network traffic menu entry in the Observe menu of the Red Hat OpenShift Container Platform console by manually registering the console plugin in the FlowCollector resource and the console operator configuration.
-
You have installed Red Hat OpenShift Container Platform version 4.10 or newer.
-
Check if the
spec.consolePlugin.registerfield is set totrueby running the following command:$ oc -n netobserv get flowcollector cluster -o yamlExample outputapiVersion: flows.netobserv.io/v1alpha1 kind: FlowCollector metadata: name: cluster spec: consolePlugin: register: false -
Optional: Add the
netobserv-pluginplugin by manually editing the Console Operator config:$ oc edit console.operator.openshift.io clusterExample output... spec: plugins: - netobserv-plugin ...
-
Optional: Set the
spec.consolePlugin.registerfield totrueby running the following command:$ oc -n netobserv edit flowcollector cluster -o yamlExample outputapiVersion: flows.netobserv.io/v1alpha1 kind: FlowCollector metadata: name: cluster spec: consolePlugin: register: true -
Ensure the status of console pods is
runningby running the following command:$ oc get pods -n openshift-console -l app=console -
Restart the console pods by running the following command:
$ 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:
$ oc get pods -n netobserv -l app=netobserv-pluginExample outputNAME 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:
$ oc logs -n netobserv -l app=netobserv-pluginExample outputtime="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