Can not exclude existing Violated resource by adding labelSelector to Constraint #451
Unanswered
allkusary
asked this question in
Gatekeeper
Replies: 1 comment
-
The indentation doesn't look quite right to me, but it might not have any effect. Are you using the Replica Limits constraint template from the community library? https://open-policy-agent.github.io/gatekeeper-library/website/validation/replicalimits
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone. We are going to apply MinReplicas Constraint which doesn't allow 1 replica deployments. Also we have some exception deployments that should continue running with 1 replica. So we added labelSelector to Constraint to exclude these deployments. But even with this label we can not reapply/replace existing deployment with 1 replica. We have to delete and only after that recreate deployment. Is it any other way to apply it without deletion?
Error
Constraint
Deployment
Beta Was this translation helpful? Give feedback.
All reactions