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
I am trying to build a Kubernetes controller using fabric8io/kubernetes-client. As of now I use the version 4.10.3.
For that purpose I am constructing a SharedIndexInformer to properly watch resources events emitted by the cluster. I will take pods as resources example here.
So the SharedIndexInformer is constructed following this piece of code:
Following, lot of code to attach events handler, start the indexer, have a reconciliation loop and so on.
The indexer is working perfectly fine when started from my local machine, and I see all pods being listed. However, when I run it on a pod in my cluster (with RBAC properly defined), I see only the pods for the namespace where the pod is run on.
I checked explicitly in the pod that, using kubectl, the associated service account was capable to list all pods in the cluster, and not only in the current namespace.
What am I missing?
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered:
I am trying to build a Kubernetes controller using
fabric8io/kubernetes-client
. As of now I use the version4.10.3
.For that purpose I am constructing a
SharedIndexInformer
to properly watch resources events emitted by the cluster. I will take pods as resources example here.So the
SharedIndexInformer
is constructed following this piece of code:Following, lot of code to attach events handler, start the indexer, have a reconciliation loop and so on.
The indexer is working perfectly fine when started from my local machine, and I see all pods being listed. However, when I run it on a pod in my cluster (with RBAC properly defined), I see only the pods for the namespace where the pod is run on.
I checked explicitly in the pod that, using
kubectl
, the associated service account was capable to list all pods in the cluster, and not only in the current namespace.What am I missing?
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: