Lessons from deploying Vault Enterprise HA on OpenShift with HCP auto-unseal
A developer documented key challenges encountered while setting up a three-node Vault Enterprise high-availability cluster on OpenShift, managed via ArgoCD with a GitOps approach. A central issue was the IPC_LOCK Linux capability, which Vault needs to call mlockall(), but OpenShift's restricted-v2 Security Context Constraint does not permit by default, causing pods to enter CrashLoopBackOff. The fix involved creating a custom SecurityContextConstraints resource that explicitly allows and defaults IPC_LOCK, paired with a ClusterRole and RoleBinding scoped to the Vault service account. An additional complication arose from SCC priority conflicts, where another SCC was selected over the custom one, requiring an explicit capability hint in the Helm values to guide the SCC resolver correctly. The author also switched from the Red Hat partner image to the upstream Vault Enterprise image to avoid digest inconsistencies caused by floating image tags.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in