Opa 1.1.0 server shuts down automatically #662
-
0.66. was working great, but when I tried to upgrade to 1.1.0, opa server shuts down automatically after it goes up, logs look like The bundle itself is good, I can run that in my local with opa1.1.0, but when I try to run opa as pod and download bundle from s3 bucket, will shutdown immediately. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi there! Hmm, OPA doesn't indicate any failure, so that makes me suspect the pod allocated more memory than it's been assigned. Do you have any resource quotas or memory limits enforced by Kubernetes for these pods? Have you checked memory consumption of the pod running OPA? It's still odd that this worked in v0.66.0 but not in v1.1.0... which may indicate a regression somewhere. Would be interesting to compare memory usage of the two versions for your deployment. |
Beta Was this translation helpful? Give feedback.
Oh, I think I know what's up! OPA is now only exposed on the localhost interface by default, and that's probably making the container unreachable outside of Docker. Can you try passing
--addr 0.0.0.0:8181
to theopa run
command?https://www.openpolicyagent.org/docs/latest/security/#interface-binding