Files

replicator

Kubernetes Replicator (mittwald/kubernetesreplicator) is a lightweight controller that automatically copies Secrets and ConfigMaps between namespaces. It is ideal for sharing resources like wildcard TLS certificates generated by certmanager across multiple namespaces without manual copying.

Replicator watches for annotations on a source Secret and keeps synchronized copies updated in the target namespaces. It preserves custom metadata and removes certmanagerspecific annotations from the replicated secrets to avoid conflicts. When certmanager renews a certificate, Replicator automatically updates all replicated copies.

Setup

Using flux for reconciliation.

kubectl kustomize deploy/flux | kubectl apply -f -