Member-only story
Explore Longhorn Cloud Native Storage on OpenShift
Rather than OpenShift ODF, I need a light weight cloud native storage solution for testing purpose. Rancher’s longhorn looks like a good choice. Let’s explore it.
Install Longhorn on OpenShift
Because of the security settings of OpenShift, we could not install longhorn with the kubectl command line directly. We need to use the helm chart approach.
Run the following command,
helm repo add longhorn https://charts.longhorn.io
helm repo update
oc create namespace longhorn-system
Prepare the following values.yaml file
openshift:
enabled: true
ui:
route: "longhorn-ui"
port: 443
proxy: 8443
image:
openshift:
oauthProxy:
repository: quay.io/openshift/origin-oauth-proxy
tag: 4.16
Here the oauthProxy image is provided to allow the OpenShift based authentication for the UI.
Install the helm chart,
helm install longhorn longhorn/longhorn -n longhorn-system -f values.yaml
Longhorn is then installed.
Retrieve the URL by running oc -n longhorn-system get route
, login with the OpenShift username and password, we have the console as shown below, where I have 21 PVC…