Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

the console of hawtio is not correct.can not see any kubernetes resources #119

Open
becile opened this issue Jun 23, 2016 · 3 comments
Open

Comments

@becile
Copy link

becile commented Jun 23, 2016

the console of hawtio is not correct.cat not see any kubernetes resources

[root@localhost ~]# kubectl version -s 192.168.1.177:8080
Client Version: version.Info{Major:"1", Minor:"3+", GitVersion:"v1.3.0-alpha.5", GitCommit:"914163247d9a16b46921e83f7dbedb572859b3e4", GitTreeState:"clean", BuildDate:"2016-06-02T20:44:18Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"3+", GitVersion:"v1.3.0-alpha.5", GitCommit:"914163247d9a16b46921e83f7dbedb572859b3e4", GitTreeState:"clean", BuildDate:"2016-06-02T20:38:51Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}

logs of hawtio-kubernetes
[hawtio-backend] Mounting static asset: { path: '/', dir: './libs/zeroclipboard' }
[14:18:40] Finished 'connect' after 59 ms
[14:18:40] Starting 'default'...
[14:18:40] Finished 'default' after 11 μs
started from gulp file at 0.0.0.0 : 9000
[hawtio-backend] Started livereload, port : 35729
hawtioerr

@becile
Copy link
Author

becile commented Jun 23, 2016

chrome_v

@becile becile changed the title the console of hawtio is not correct.cat not see any kubernetes resources the console of hawtio is not correct.can not see any kubernetes resources Jun 23, 2016
@gashcrumb
Copy link
Member

Any info from the javascript console?

Typically running hawtio-kubernetes in dev mode requires a few environment variables so it knows how to connect to your kubernetes/openshift instance, for example I set these for openshift:

export KUBERNETES_TRUST_CERT=true
export SKIP_TLS_VERIFY=true
export INSECURE_SKIP_TLS_VERIFY=true
export KUBERNETES_NAMESPACE=default
export BUILD_NAMESPACE=default

export KUBERNETES_MASTER=https://172.28.128.4:8443
export KUBERNETES_DOMAIN=vagrant.f8
export DOCKER_HOST=tcp://172.28.128.4:2375

And this for vanilla kubernetes:

export KUBERNETES_TRUST_CERT=true
export SKIP_TLS_VERIFY=true
export INSECURE_SKIP_TLS_VERIFY=true
export KUBERNETES_NAMESPACE=default
export BUILD_NAMESPACE=default
export DISABLE_OAUTH=true
export KUBERNETES_MASTER=https://104.155.68.221:443

It should work standalone but typically hawtio-kubernetes is used from fabric8-console

@becile
Copy link
Author

becile commented Jun 24, 2016

thank you very much.
i use the vanilla kubernetes,env has set.the chrome js-console err like this:
js-console

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants