Installing the Kubernetes Secret Store CSI on OpenShift
The Kubernetes Secret Store CSI is a storage driver that allows you to mount secrets from external secret management systems like HashiCorp Vault and AWS Secrets.
It comes in two parts, the Secret Store CSI, and a Secret provider driver. This document covers just the CSI itself.
Prerequisites
- An OpenShift Cluster (ROSA, ARO, OSD, and OCP 4.x all work)
- kubectl
- helm v3
Installing the Kubernetes Secret Store CSI
Create an OpenShift Project to deploy the CSI into
Set SecurityContextConstraints to allow the CSI driver to run (otherwise the DaemonSet will not be able to create Pods)
Add the Secrets Store CSI Driver to your Helm Repositories
Update your Helm Repositories
Install the secrets store csi driver
Check that the Daemonsets is running
You should see the following
Add pod security profile label for CSI Driver
This is required starting in OpenShift v4.13
Uninstalling the Kubernetes Secret Store CSI
Delete the secrets store csi driver
Delete the SecurityContextConstraints