Files
casa/services/replicator
Márcio Fernandes 24fe92de8c fluxcd: replicator
2026-06-07 15:12:43 +00:00
..
2026-06-07 15:12:43 +00:00
2026-06-07 15:12:43 +00:00

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.

helm repo add mittwald https://helm.mittwald.de
kubectl create namespace replicator
helm repo update
helm upgrade --install replicator mittwald/kubernetes-replicator \
  --namespace replicator

Setup

Using flux for reconciliation.

kubectl kustomize deploy/flux | kubectl apply -f -