Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shalineekaran opened this issue May 8, 2024 · 2 comments
Open

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

shalineekaran opened this issue May 8, 2024 · 2 comments

Comments

@shalineekaran
Copy link

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:
- args:
- --namespace-selector=kubernetes.io/reloader-enabled:yes
- name: nginx
image: nginx
ports:
- containerPort: 80

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
Copy link
Author

shalineekaran commented May 8, 2024

@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.

@shalineekaran shalineekaran changed the title namespace selector isn't working namespace selector isn't working @help/Kind May 8, 2024
@SheryarButt
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants