Is it possible to automaticly attach a configmap to every pod/deployment created ina namespace

Cluster information:

Kubernetes version:1.13
Cloud being used: bare-metal
Host OS: Redhat Linux 7

All,

In my environment there is a need of attaching a configmap to every pod created in a specific namespace without adding it to the pod yaml (the pod/yaml is dynamically created). Does someone know how to configure this in my namespace ?

Thanks
KAR

It does not make sense to me? how do you picture that you will reference the configmap data? what is your use case?

Hi @KAR,

There is no native way to attach a configmap to each pod inside a namespace.

But this could be done by creating an admission controller that could do this for you automatically when the pods are created, and more specifically a mutating admission controller