OpenShift
Hawtio Online v2.1.0 has now been released. Its container image is available from quay.io. The following instructions will enable deployment of this version. |
Hawtio Online is a Hawtio console that eases the discovery and management of hawtio-enabled [1] applications deployed on OpenShift.
Preparation
Prior to the deployment, depending on the cluster types you need to generate either of the proxying or serving certificates.
Certificate | Description |
---|---|
Proxying |
Used to secure the communication between Hawtio Online and the Jolokia agents. A client certificate is generated and mounted into the Hawtio Online pod with a secret, to be used for TLS client authentication. |
Serving |
Used to secure the communication between the client and Hawtio Online. |
Proxying certificates
For OpenShift, a client certificate must be generated using the service signing certificate authority private key.
Run the following script to generate and set up a client certificate for Hawtio Online:
$ ./scripts/generate-proxying.sh
or if you have Yarn installed, this will also do the same thing:
$ yarn gen:proxying
Serving certificates
For OpenShift, a serving certificate is automatically generated for your Hawtio Online deployment using the service signing certificate feature.
Deployment
Now you can run the following instructions to deploy the Hawtio Online console on your OpenShift cluster.
There are two deployment modes you can choose from: cluster and namespace.
Deployment Mode | Description |
---|---|
Cluster |
The Hawtio Online console can discover and connect to hawtio-enabled [1] applications deployed across multiple namespaces / projects. |
Namespace |
This restricts the Hawtio Online console access to a single namespace / project, and as such acts as a single tenant deployment. |
You may want to read how to get started with the CLI for more information about the oc
client tool.
To deploy the Hawtio Online console on OpenShift, follow the steps below.
Cluster mode
If you have Yarn installed:
$ yarn deploy:openshift:cluster
otherwise (two commands):
$ oc apply -k deploy/openshift/cluster/
$ ./deploy/openshift/cluster/oauthclient.sh
Namespace mode
If you have Yarn installed:
$ yarn deploy:openshift:namespace
otherwise:
$ oc apply -k deploy/openshift/namespace/
You can obtain the status of your deployment, by running:
$ oc status
In project hawtio on server https://192.168.64.12:8443
https://hawtio-online-hawtio.192.168.64.12.nip.io (reencrypt) (svc/hawtio-online)
deployment/hawtio-online deploys hawtio/online:latest
deployment #1 deployed 2 minutes ago - 1 pod
Open the route URL displayed above from your Web browser to access the Hawtio Online console.
Authentication
Hawtio Online currently supports authentication mode oauth
for OpenShift, which is configured through HAWTIO_ONLINE_AUTH
environment variable on Deployment.
Mode | Description |
---|---|
|
Authenticates requests through OpenShift OAuth server. It is available only on OpenShift. |