Install vHSM on Red Hat OpenShift
Red Hat's OpenShift is a distribution of the Kubernetes platform that provides a number of usability and security enhancements
In this tutorial, you login to an OpenShift cluster, install Vault via the Helm chart and then configure the authentication between Vault and the cluster. Then you deploy two web applications. One that authenticates and requests secrets directly from the Vault server. The other that employs deployment annotations that enable it to remain Vault unaware.
Prerequisites
RedHat OpenShift Local
Verify the RedHat OpenShift Local version.
$ crc version CRC version: 2.54.0+5d2dd4 OpenShift version: 4.19.8 MicroShift version: 4.19.7Verify the Helm version.
$ helm version version.BuildInfo{Version:"v3.17.1", GitCommit:"980d8ac1939e39138101364400756af2bdee1da5", GitTreeState:"clean", GoVersion:"go1.23.6"}These are recommended software versions and the output displayed may vary depending on your environment and the software versions you use.
Configure and start the OpenShift cluster
RedHat OpenShift Local provisions and manages the lifecycle of OpenShift clusters running on your local system.
Configure RedHat OpenShift Local.
Start the OpenShift cluster and enter the pull secret.
This secret is generated and stored in your Red Hat account.
The cluster starts and describes how to setup the environment and login as an administrator.
Apply the
oc-envinto the current shell session.The OpenShift CLI is accessed using the command
oc. From here, you can administrate the entire OpenShift cluster and deploy new applications. The CLI exposes the underlying Kubernetes orchestration system with the enhancements made by OpenShift.Login to the OpenShift cluster with as the user admin with the command provided by the
crc startcommand. Replace the user (-u), password (-p), and URL with the values from thecrc start` command.Example:
The output displays that you are logged in as an admin within the
defaultproject.
Install the vHSM Helm chart
The recommended way to run vHSM on OpenShift using the Helm chart. Helm is a package manager that installs and configures all the necessary components to run vHSM in several different modes. To install vHSM using Helm chart in the next step requires that you are logged in as administrator within a project.
Add the enclaive vHSM Helm repository.
Update all the repositories to ensure
helmis aware of the latest versions.Install the latest version of the Vault server running in development mode configured to work with OpenShift.
Example output:
The vhsm Pod is deployed in the default namespace.
Display all the pods within the default namespace.
The vhsm
-0pod runs a vHSM server in development mode.Wait until the
vault-0Pod is running and ready (1/1).
Last updated
Was this helpful?