Files
kubemirror/examples/secret-pattern.yaml
2025-12-25 22:10:57 +00:00

18 lines
491 B
YAML

---
# Example: Mirror a secret to all namespaces matching a pattern
apiVersion: v1
kind: Secret
metadata:
name: tls-cert
namespace: default
labels:
kubemirror.raczylo.com/enabled: "true"
annotations:
kubemirror.raczylo.com/sync: "true"
# Mirror to all namespaces starting with "app-"
kubemirror.raczylo.com/target-namespaces: "app-*"
type: kubernetes.io/tls
data:
tls.crt: LS0tLS1CRUdJTi... # Base64 encoded cert
tls.key: LS0tLS1CRUdJTi... # Base64 encoded key