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

downscaler/downtime-replicas annotation does not work on a namespace level #126

Open
kuzmacska opened this issue Jan 10, 2025 · 2 comments

Comments

@kuzmacska
Copy link

Overriding default flag on a namespace level annotation does not work.

kind: Namespace
metadata:
  annotations:
    downscaler/downtime-replicas: "1"
  labels:
    kubernetes.io/metadata.name: test
  name: test
  resourceVersion: "2913332799"

The namespace is being ignored by the kube-downscaler. Not scaling to zero, nor to 1.

Using kube-downscaler version v24.12.0.

@kuzmacska
Copy link
Author

Workaround is to use --downtime-replicas=0 in the py-kube-downscaler configuration explicitly

@samuel-esp
Copy link
Collaborator

samuel-esp commented Jan 16, 2025

Hi @kuzmacska sorry for my late reply, could you upload the configurations of your kube-downscaler instance (Deployment and ConfigMap)? If the namespace is being ignored entirely I suspect it could be caused by a wrong target configuration

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