You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3.[podman 3.2.0+](https://podman.io) or [Docker](https://www.docker.com)
61
-
4. An OpenShift 4.16 cluster
61
+
4. An OpenShift 4.16+ cluster
62
62
5.[Korrel8r](https://korrel8r.github.io/korrel8r) instance running in the cluster.
63
63
64
64
#### TP (Troubleshooting Panel) Development Server
@@ -69,18 +69,20 @@ The development server of the troubleshooting panel can either be ran as a nodej
69
69
70
70
In one terminal window, run:
71
71
72
-
1.`make install-frontend`
73
-
2.`make start-frontend`
72
+
1.`oc login` (requires [oc](https://console.redhat.com/openshift/downloads) and an [OpenShift cluster](https://console.redhat.com/openshift/create))
73
+
2.`make install-frontend`
74
+
3.`make start-frontend`
74
75
The plugin HTTP server runs on port 9002 with CORS enabled.
75
76
76
77
##### Go Server
77
78
78
79
In one terminal window, run:
79
80
80
-
1.`make build-frontend`
81
-
2.`make start-backend`
81
+
1.`oc login` (requires [oc](https://console.redhat.com/openshift/downloads) and an [OpenShift cluster](https://console.redhat.com/openshift/create))
82
+
2.`make build-frontend`
83
+
3.`make start-backend`
82
84
Or for hot reloading of the go backend you can use [gow](https://github.com/mitranim/gow)
83
-
3.`gow run ./cmd/plugin-backend.go -port='9002' -config-path='./web/dist' -static-path='./web/dist'`
85
+
4.`gow run ./cmd/plugin-backend.go -port='9002' -config-path='./web/dist' -static-path='./web/dist'`
84
86
Gow will restart when any changes are saved to go files in any subdirectories.
85
87
86
88
#### Monitoring Plugin Development Server
@@ -89,13 +91,13 @@ In another terminal window:
89
91
Clone https://github.com/openshift/monitoring-plugin into a new directory.
90
92
Then run:
91
93
92
-
1.`yarn install`
93
-
2.`yarn run start`
94
+
1.`make install`
95
+
2.`make start-frontend`
94
96
The plugin HTTP server runs on port 9001 with CORS enabled.
95
97
96
98
#### Connect to Korrel8r
97
99
98
-
##### Setting up Korrel8r
100
+
##### Setting up Korrel8r[OUTDATED]
99
101
100
102
The following steps are suggested for setting up Korrel8r within your cluster to test the plugin. These steps are accurate as of the time of writing, and both Korrel8r and this plugin are subject to change.
101
103
@@ -105,13 +107,6 @@ The following steps are suggested for setting up Korrel8r within your cluster to
105
107
4. Run `make resources`
106
108
5. Install the **korrel8r** operator into your cluster
107
109
6. Create a `korrel8r` namespace in your cluster
108
-
a. If installing in 4.15 or later, there is a permission issue which can be tracked here: https://issues.redhat.com/browse/OU-304. To solve this follow the instructions detailed in the [docs](https://korrel8r.github.io/korrel8r/#troubleshooting-ocp-415-errors)
7. Create a korrel8r instance in the `korrel8r` namespace with the name `korrel8r`
116
111
8. Follow the instructions [here](https://korrel8r.github.io/korrel8r/#troubleshooting-no-related-logs) to create a failing deployment to create alerts which link to other items using korrel8r
117
112
@@ -127,8 +122,7 @@ In a another terminal window, run:
127
122
128
123
In another terminal window, run:
129
124
130
-
1.`oc login` (requires [oc](https://console.redhat.com/openshift/downloads) and an [OpenShift cluster](https://console.redhat.com/openshift/create))
131
-
2.`npm run start-console` (requires [Docker](https://www.docker.com) or [podman 3.2.0+](https://podman.io))
125
+
1.`make start-console` (requires [Docker](https://www.docker.com) or [podman 3.2.0+](https://podman.io))
132
126
133
127
This will run the OpenShift console in a container connected to the cluster
134
128
you've logged into. Navigate to <http://localhost:9000/observe/alerts> and select an alert to see the running plugin.
@@ -198,4 +192,4 @@ break console styles!
198
192
199
193
### Local Development Troubleshooting
200
194
1. Disable cache. Select 'disable cache' in your browser's DevTools > Network > 'disable cache'. Or use private/incognito mode in your browser.
201
-
2. Enable higher log verbosity by setting `-log-level=trace` when starting the plugin backend. For more options to set log level see [logrus documentation](https://github.com/sirupsen/logrus?tab=readme-ov-file#level-logging).
195
+
2. Enable higher log verbosity by setting `-log-level=trace` when starting the plugin backend. For more options to set log level see [logrus documentation](https://github.com/sirupsen/logrus?tab=readme-ov-file#level-logging).
0 commit comments