add replicator: automatic sync tls wildcard
Deploy Casa services CI/CD Pipeline / deploy (push) Successful in 18s
Deploy Casa services CI/CD Pipeline / deploy (push) Successful in 18s
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
``` bash
|
||||||
|
kubectl annotate secret casa-limbosolutions-com-tls \
|
||||||
|
-n casa-limbosolutions-com \
|
||||||
|
replicator.v1.mittwald.de/replicate-to="home-assistant,node-red,lyrionmusicserver"
|
||||||
|
```
|
||||||
@@ -1,6 +1,3 @@
|
|||||||
# Proxima iteração arranjar uma maneira de copiar os certificados entre namespaces, ainda foi a mão
|
|
||||||
# ter em atenção que ao copiar é melhor apagar anotations do cert manager para o mesmo nao ser gerido por mais do que um namespcace
|
|
||||||
|
|
||||||
|
|
||||||
apiVersion: cert-manager.io/v1
|
apiVersion: cert-manager.io/v1
|
||||||
kind: Certificate
|
kind: Certificate
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
# replicator
|
||||||
|
|
||||||
|
Kubernetes Replicator (mittwald/kubernetes‑replicator) is a lightweight controller that automatically copies Secrets and ConfigMaps between namespaces. It is ideal for sharing resources like wildcard TLS certificates generated by cert‑manager 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 cert‑manager‑specific annotations from the replicated secrets to avoid conflicts. When cert‑manager renews a certificate, Replicator automatically updates all replicated copies.
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
helm repo add mittwald https://helm.mittwald.de
|
||||||
|
kubectl create namespace replicator
|
||||||
|
helm repo update
|
||||||
|
helm upgrade --install replicator mittwald/kubernetes-replicator \
|
||||||
|
--namespace replicator
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user