You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
constkc=newk8s.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.
The text was updated successfully, but these errors were encountered:
leroy0211
changed the title
How to Watch with configuration from cluster
How to Watch with KubeConfig configured from cluster
Jun 22, 2018
When creating applications which needs to
Watch
the kubernetes api, there is no way of creating a newKubeConfig
object created by credentials provided by kubernetes (or openshift).Basically the
Config::fromCluster()
is what we need, but then available on theKubeConfig
class likeOr 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.The text was updated successfully, but these errors were encountered: