policy hot reload in sidecar opa server in kubernetes #414
Replies: 1 comment
-
Scratch that. I had to be more patient and wait for the configmap changes to replicate to the volume mount. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
One option to supply policy to opa sidecar in a kubernetes cluster is via config map and mounted volume. Note that the deployment option under discussion here is distributed opa as a sidecar injected automatically to workloads via the opa operator.
However, it seems that the opa server does not hot reload policy configmap changes automatically even with
opa run --watch
option enabled and the only option is to restart the container (e.g. by scale down and then up the workload deployment replicas).That is hardly a productive operational scenario and I wanted to confirm the following:
--watch
behavior?--watch
option description?The relevant injected sidecar container config:
My expectation was that with
--watch
, changes in the configmap that materializes as/policy/policy.rego
would be hot reloaded by the opa server in the sidecar container.Beta Was this translation helpful? Give feedback.
All reactions