Getting started with DevOps Plan Helm Chart on IBM OpenShift
This quick start guide shows you how to deploy DevOps Plan on IBM OpenShift.
Before you begin
- Setup your environment by installing OpenShift CLI, Helm CLI and having access to OpenShift Cluster. For more information about how to get started with OpenShift and Helm, see Getting started with OpenShift and Getting Started with Helm. Setup the environment with OpenShift 4.13 and higher, the OpenShift CLI, and Helm 3.16 and higher.
- DevOps Plan requires a PostgreSQL database and a Keycloak to create TeamSpace, Applications, and add users to sign in. The PostgreSQL database may be running in your cluster or on hardware that resides outside of your cluster. The values used to connect to the database and Keycloak are required when installing DevOps Plan. The helm chart provides the PostgreSQL database and Keycloak by default. You can disable and use your own PostgreSQL database and Keycloak.
- Configure IBM License Service on OpenShift and copy the upload secret and configmap to the namespace/project where the DevOps Plan server will be installed. For more information, see DevOps Plan Licensing Requirements.
About this task
Procedure
-
Download the Helm Chart.
- The DevOps Plan helm chart is available at the public Helm Repository.
-
Get a key to the entitled registry.
- Log in the MyIBM Container Software Library with the IBMid and password that are associated with the entitled software.
- In the Entitlement Keys section, select Copy Key to the entitlement key to the clipboard.
- An imagePullSecret must be created to be able to authenticate and pull images from
the Entitled Registry. If the secret is named
ibm-entitlement-key, it will be used as the default pull secret and no value needs to be specified in theglobal.imagePullSecretfield.After this secret has been created, you will use the secret name as the value for the imagePullSecret parameter in thevalues.yamlfile that you provide tohelm install.Note: Secrets are namespace scoped, so they must be created in every namespace that you plan to install DevOps Plan into. The following example is a command to create an imagePullSecret namedibm-entitlement-key:oc create secret docker-registry ibm-entitlement-key \ --namespace [namespace_name] \ --docker-username=cp \ --docker-password=<EntitlementKey> \ --docker-server=cp.icr.io
-
Add the DevOps Plan helm chart
repository to the local client. and verify that
devops-plan/hcl-devopsplan-prodhas been added:helm repo add ibm-helm https://raw.githubusercontent.com/IBM/charts/master/repo/ibm-helm/ helm repo update $ helm search repo ibm-helm/ibm-devopsplan -
Install the helm chart with the default parameters into the namespace
devopsplanwith the release nameibm-devopsplan.helm install ibm-devopsplan ibm-helm/ibm-devopsplan-prod \ -f ibm-devopsplan/values-openshift.yaml \ --namespace devopsplan \ --set global.imagePullSecrets={ibm-entitlement-key} \ --set global.domain=[openshift-cluster-dns-name] \ --timeout 10mYou can adjust the timeout value based on the performance and responsiveness of your OpenShift cluster.
If you plan to install the latest version of DevOps Plan, you do not need to add
--version [CHART VERSION].- If you plan to use an external PostgreSQL database, see Installing DevOps Plan with external databases and optional email server settings.
- If you plan to use external Keycloak, see Enabling the DevOps Plan Keycloak Single Sign On feature.
- When providing your own cluster, if the default storage class does not support the ReadWriteMany
(RWX) accessMode, or it does not support Storage Class ibmc-file-gold-gid, then an alternative class
must be specified by using the following additional helm
values:
--set persistence.storageClass=[default_storage_class] \ --set persistence.ccm.storageClass=[ReadWriteMany_storage_class] \ --set securityContext.fsGroup=[FSGROUP_NUMBER]
-
Run
helm status hcl-devopsplan -n devopsplanto retrieve the username and password for the Opensearch Dashboard, KeyCloak, and PostgreSQL databases. -
Start the Keycloak home page by using
https://ibm-devopsplan-keycloak.[openshift-cluster-dns-name]/and trust the keycloak certificate. -
Start the DevOps Plan home page
in your browser by using
https://ibm-devopsplan.[openshift-cluster-dns-name]. -
To install with Customize Parameters setting:
- Get a copy of the
values.yamlfile from the helm chart so that you can update it with values used by the install.$ helm inspect values ibm-helm/ibm-devopsplan-prod --version [CHART VERSION] > myvalues.yaml - Edit the file
myvalues.yamlto specify the parameter values to use when installing the DevOps Plan instance. - Install the chart into the namespace
devopsplanwith the release nameibm-devopsplanand use the values from themyvalues.yamlfile.helm install ibm-devopsplan ibm-helm/ibm-devopsplan-prod \ -f ibm-devopsplan/values-openshift.yaml \ --namespace devopsplan \ --values myvalues.yaml \ --timeout 10mYou can list all releases by using
helm list.If you plan to install the latest version of DevOps Plan, you do not need to add
--version [CHART VERSION].
- Get a copy of the
-
Enable License Metrics.
By default, the
global.licenseMetricparameter is set to false. You must set it to to true during the helm install/upgrade.--set global.licenseMetric=trueNote: Before you can enable license metrics, you must have IBM License Service installed on your OpenShift environment. For more information on installing IBM License Service, see DevOps Plan Licensing Requirements. -
You can uninstall and delete the chart by using the helm delete command:
helm delete ibm-devopsplan \ --namespace devopsplan