-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Description
- On startup kube-mgmt should add sample policy to OPA container using OPA REST API. The policy i a marker that communication between containers is established and kube-mgmt started reconciliation.
- The sample policy should be implemented as Custom Health Check
- Then liveness probe should be added to kube-mgmt container, that will periodically check that OPA policy against OPA container. If policy is missing - most probably OPA container was restarted, so kube-mgmt pod can be killed and on the restart policy will be synchronized.
- Thresholds and periods should be set to values that would enforce kube-mgmt container restart as soon as possible.
https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes
alex0z1