Why opa-gatekeeper policies doesn't work in GK default namespace. #173
-
I Have implemented the following template and constraint but I’m still able to create a load balancer in the default namespace of Kubernetes. apiVersion: constraints.gatekeeper.sh/v1beta1 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi! Can you re-post your example resources using triple backtics (```) to wrap the yaml, it may help diagnose the issue, since it will preserve indentation.
https://open-policy-agent.github.io/gatekeeper/website/docs/debug#viewing-the-request-object
|
Beta Was this translation helpful? Give feedback.
-
When you say “doesn’t work in default GK namespace”, do you mean resources deployed to the “default” namespace is not getting blocked? what version of GK are using. |
Beta Was this translation helpful? Give feedback.
-
Thanks, it's started working in the default namespace as well. |
Beta Was this translation helpful? Give feedback.
Thanks, it's started working in the default namespace as well.