Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Watch with KubeConfig configured from cluster #55

Closed
leroy0211 opened this issue Jun 22, 2018 · 1 comment
Closed

How to Watch with KubeConfig configured from cluster #55

leroy0211 opened this issue Jun 22, 2018 · 1 comment

Comments

@leroy0211
Copy link

When creating applications which needs to Watch the kubernetes api, there is no way of creating a new KubeConfig object created by credentials provided by kubernetes (or openshift).

Basically the Config::fromCluster() is what we need, but then available on the KubeConfig class like

const kc = new k8s.KubeConfig();
kc.fromCluster();  // <-- this is missing and so required!

Or am I doing something completely wrong here?
It's just that the application which needs to query the kubernetes api, is running in kubernetes itself, so .kube/config files are not working in this usecase.

@leroy0211 leroy0211 changed the title How to Watch with configuration from cluster How to Watch with KubeConfig configured from cluster Jun 22, 2018
@brendandburns
Copy link
Contributor

Makes sense, I'll try to fix this...

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

No branches or pull requests

2 participants