Any #kubernetes gurus around?
I'm working in an environment with an internal self-issued CA (actually a root and two subordinate CAs), and trying to figure out the best (or least-bad) way to make those CAs available to pods running in various namespaces.
I eventually figured to use a DaemonSet to load the certs into /etc/ssl/certs/ on each node so that K8s will trust a private registry with a cert issued by the CAs.
But what about the other workload pods?
I don't really like the idea of creating a Secret *in every namespace* to hold the certs, though mounting those into pods would be trivial.
Mounting the /etc/ssl/certs hostPath (readOnly, scoped to that specific directory) into the pods seems like a more efficient approach... but hostPaths give me nightmares, even as a K8s novice.
Is there another reasonable option I'm missing?
Of course we're also standing up an automated CI/CD system as a part of this effort so really recreating our customized images on a regular basis wouldn't be much of a hurdle. I'm kind of thinking this is going to be The Way we go.