stakater / Reloader

A Kubernetes controller to watch changes in ConfigMap and Secrets and do rolling upgrades on Pods with their associated Deployment, StatefulSet, DaemonSet and DeploymentConfig – [✩Star] if you're using it!
https://docs.stakater.com/reloader/
Apache License 2.0
7.12k stars 476 forks source link

namespace selector isn't working @help/Kind #659

Open shalineekaran opened 1 month ago

shalineekaran commented 1 month ago

apiVersion: apps/v1 kind: Deployment metadata: name: nginx namespace: myapp annotations: reloader.stakater.com/auto: "true" spec: replicas: 1 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers:

the way i am passing please let me know is this correct way for it to work for secret and config for differnt namespace.

shalineekaran commented 1 month ago

@faizanahmad055 please help for this @MuneebAijaz please help

Hi Team,

I have 2 deployment 1 secret and configmap under same namespace and i chnaged the secret and reloader update the pod. But i want only one deployment should reloader update the pod instead of both. Is that possible , If yes please help me with it.

SheryarButt commented 1 month ago

Hi @shalineekaran You should only add the reloader.stakater.com/auto: "true" annotation on the deployment you want to reload and remove the annotation from the other one. That should resolve your issue.