Go to file
Stan Lewis c6b80a80e4 Fix #124 2016-08-28 11:02:45 +08:00
d.ts Fix #124 2016-08-28 11:02:45 +08:00
dist Fix #124 2016-08-28 11:02:45 +08:00
img fixed up images for the site goal 2015-02-16 17:38:37 +00:00
osconsole Switch to kuisp from k8s-proxy 2015-03-25 20:24:53 +00:00
plugins Fix #124 2016-08-28 11:02:45 +08:00
.bowerrc initial creation of plugin 2015-01-16 10:18:43 +00:00
.gitignore Switch to kuisp from k8s-proxy 2015-03-25 20:24:53 +00:00
Dockerfile Upgrade to v1 APIs & use new URL for pod proxying 2015-06-18 12:24:14 +01:00
LICENSE.txt add a license and readme 2015-01-19 15:10:16 +00:00
ReadMe.md Add a --out flag to gulp... 2016-01-25 10:21:26 -05:00
bower.json v2.1.261 2016-08-11 13:10:58 -04:00
circle.yml Comment out deployment in a non-breaking fashion hopefully :-) 2015-04-24 08:08:49 -04:00
defs.d.ts Fix #124 2016-08-28 11:02:45 +08:00
gulpfile.js Fix #124 2016-08-28 11:02:45 +08:00
index.html Fix #124 2016-08-28 11:02:45 +08:00
package.json upgrade gulp-typescript 2016-03-19 05:20:48 +00:00

ReadMe.md

hawtio-kubernetes Circle CI

This plugin provides a Kubernetes console for hawtio

controllers tab screenshot

Running

Running a release

If you have a Kubernetes or OpenShift environment, the easiest way to try out this console is to just run the app directly in kubernetes via these instructions

Or you can try running the fabric8/hawtio-kubernetes docker image:

docker pull fabric8/hawtio-kubernetes
docker run -it -p 9090:9090 -e KUBERNETES_SERVICE_HOST=$DOCKER_IP fabric8/hawtio-kubernetes

Where DOCKER_IP is the IP address or host running the kubernetes master.

Running this plugin locally

First clone the source

git clone https://github.com/hawtio/hawtio-kubernetes.git
cd hawtio-kubernetes

Next you'll need to install NodeJS and then install the default global npm dependencies:

npm install -g bower gulp slush slush-hawtio-javascript slush-hawtio-typescript typescript

Then install all local nodejs packages and update bower dependencies via:

npm install
bower update

Next you need to setup the KUBERNETES_MASTER environment variable to point to the kubernetes master you want to run against. e.g.

export KUBERNETES_MASTER=https://$DOCKER_IP:8443

Where DOCKER_IP is the IP address or host running the kubernetes master.

If you need to disable OAUTH authentication in development try use DISABLE_OAUTH:

export DISABLE_OAUTH=true

Then to run the web application:

gulp

Install the bower package

bower install --save hawtio-kubernetes

Output build to a different directory

When developing this plugin in a dependent console you can change the output directory where the compiled .js and .css go. Just use the 'out' flag to set a different output directory, for example:

gulp watch --out=../fabric8-console/libs/hawtio-kubernetes/dist/

Whenever the build completes the compiled .js file will be put into the target directory. Don't forget to first do a gulp build without this flag before committing changes!