I have an Openshift 4.10 install, running a bunch of applications in different namespaces, in which I want to make a tnsnames.ora file available.
I've made a configmap with the tnsnames.ora in it, for my 'sandbox' namespace and that works for my test app.
oc create configmap test-tns --from-file=/etc/tns/tnsnames.ora
and then in my deployment I've added this in :
spec:
volumes:
- name: tnsnames-vol
configMap:
name: test-tns
defaultMode: 420
and
volumeMounts:
- name: tnsnames-vol
mountPath: /etc/tns/
This works fine, for that one app in my own namepsace.
What I'd like to do is "make it available to all namespaces". Ie: I don't want to require my developers to make their own tns configmap. I'd like to have just one available to anyone ( current or in the future) to be able to just 'hook into' my tnsnames.vol and have it work in their app, across all namespaces.
I'm unsure on how to do that, and I'm looking for advice on how to get that to work, or - alternatively if this is even a good idea or how folks provide 'universally available config files'.