-
Notifications
You must be signed in to change notification settings - Fork 20
Use hawtio v2 instead of old v1 for jube #275
Comments
We are removing kubernetes and docker and whatnot from v1 as its no longer maintained there, and just add noise: hawtio/hawtio#1932 |
This requires we make a little WAR app or something of v2, and/or install it by downloading it from github, which we can do like https://github.com/apache/camel/blob/master/examples/camel-example-servlet-rest-tomcat/pom.xml#L103 |
Using hawtio-kubernetes v2 and pointing the kube master to jube running local we get a bunch of errors. That is expected since jube hasn't been kept up to date with the development on the docker side.
|
yeah that url: /api/v1beta2/proxy/services/app-library-jolokia/jolokia is trying to talk to the app library (for the Library tab) so this should proxy to the Services in kube/jube to find the service called "app-library-jolokia" then proxy the request "/jolokia" to that IP and port |
Oh this is new. So there is an app called Is that the guy that needs to be running, and offer the REST services which hawtio v2 expects? |
Its not mandatory; if it doesn't run you shouldn't have a Library tab and there's no icons found on the Apps / Services / Controllers / Pods pages; and the Run... menu is empty. At least to get a basic jube working we shouldn't require it. There might be places in hawtio v2 where we access the service via the proxy URL without first checking that there is a service of that name in the service registry first. i.e. to avoid errors in the log ;) |
Ah thanks all that level of indirection ;) At first glance it seems v2 uses context path |
yeah; we probably wanna just get jube to forward /kubernetes/api/* to /api or something (ditto for osapi) (We've similar stuff to try expose /api/v1beta1 and /api/v1beta2 etc). |
Okay got a bit further but there is more steps to do
|
There is a few old hawtio v1 modules that jube still uses, which we either need to port or remove the need for
|
|
|
The jube code can now build and compile with hawtio-java v2. The console does not yet work, there is some web socket and some other rest apis not yet working, but at least the console is shown. |
No description provided.
The text was updated successfully, but these errors were encountered: