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
k8s-sidecar-injector logs show " requested injection sidecar-telegraf-basic was not in configuration".
then i modify sidecar config file.modify namespaces which is equal with k8s-sidecar-injector's namespace.
and it works.
why??in my opinion,the target pods which namespace is monitoring, k8s-sidecar-injector should use sidecar config which namespace is monitirng.not kube-system.
The text was updated successfully, but these errors were encountered:
As written, the sidecar injector watches ConfigMaps in a specific namespace. This is controllable via --configmap-namespace (see https://github.com/tumblr/k8s-sidecar-injector/blob/master/internal/pkg/config/watcher/watcher.go#L46). As I designed it, I thought of the Sidecar ConfigMaps as being associated with the injector, not the pods that request the injection. For this reason, it makes sense that the ConfigMaps must live in the namespace where the k8s-sidecar-injector runs, not where an arbitrary pod runs.
i run injector with help of deployment.md
yaml files is in project example directory.every thing is ok,then i run a diferent instances.
pod yaml file:
sidecar config file:
k8s-sidecar-injector logs show " requested injection sidecar-telegraf-basic was not in configuration".
then i modify sidecar config file.modify namespaces which is equal with k8s-sidecar-injector's namespace.
![image](https://user-images.githubusercontent.com/18585129/65751376-fb2f9e00-e13c-11e9-9c56-c8f40d6ff3de.png)
and it works.
![image](https://user-images.githubusercontent.com/18585129/65751422-24e8c500-e13d-11e9-9a22-6a0060bc7851.png)
why??in my opinion,the target pods which namespace is monitoring, k8s-sidecar-injector should use sidecar config which namespace is monitirng.not kube-system.
The text was updated successfully, but these errors were encountered: