Skip to content
/ synator Public

Synator Kubernetes Secret and ConfigMap synchronizer

License

Notifications You must be signed in to change notification settings

TheYkk/synator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synator Kubernetes Secret and ConfigMap synchronizer

Synator synchronize your Secrets and ConfigMaps with your desired namespaces

Usage

Add annotation synator/sync=yes to Secret or ConfigMap. Optionally add one of these annotations in include specific destination namespaces, or exclude the namespaces from the sync. synator/include-namespaces='namespace1,namespace2' synator/exclude-namespaces='kube-system,kube-node-lease'

Reload pod when config upgraded

Add annotation synator/reload: "secret:example" to pod or deployment template When secret example updated busybox pod will reload

apiVersion: apps/v1
kind: Deployment
metadata:
  name: busybox
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      name: busybox
  template:
    metadata:
      labels:
        name: busybox
      annotations:
        synator/reload: "secret:selam"
    spec:
      containers:
        - name: busybox
          image: busybox
          command:
            - "sleep"
            - "1h"

Triggers

  • When update config or secret
  • When create config or secret

Build and deploy

Build docker image

docker build -t <usename>/synator:v1 .

Edit deploy.yml with your image name

kubectl apply -f deploy.yml

About

Synator Kubernetes Secret and ConfigMap synchronizer

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •