|
| 1 | +// Module included in the following assemblies |
| 2 | +// assembly-orchestrator-helm-modules.adoc |
| 3 | + |
| 4 | +:_mod-docs-content-type: PROCEDURE |
| 5 | +[id="proc-install-orchestrator-helm-cli_{context}"] |
| 6 | += Install the Orchestrator flavor using the Helm CLI |
| 7 | + |
| 8 | +You can install the Orchestrator flavor of {product} ({product-very-short}) on OpenShift using the Helm CLI. This method provides flexibility for custom configurations and automation. The Orchestrator flavor enables serverless workflows and orchestration capabilities. |
| 9 | + |
| 10 | + |
| 11 | +[IMPORTANT] |
| 12 | +==== |
| 13 | +You must be a cluster administrator to install the Orchestrator Helm chart because it deploys cluster-scoped resources. The {product} Helm chart may be installed by a user with namespace-level access. |
| 14 | +==== |
| 15 | + |
| 16 | +.Prerequisites |
| 17 | + |
| 18 | +* You are logged in to the OpenShift cluster using the `oc` CLI. |
| 19 | +* You have installed Helm and configured locally. |
| 20 | +* You have access to the official Red Hat container registry (`registry.redhat.io`). |
| 21 | +* You have created a `values.yaml` file for the deployment. |
| 22 | +* You have access to the {product} Helm chart repository. |
| 23 | +
|
| 24 | +.Procedure |
| 25 | + |
| 26 | +. Add the official OpenShift Helm charts repository: |
| 27 | ++ |
| 28 | +[source,bash] |
| 29 | +---- |
| 30 | +helm repo add openshift-helm-charts https://charts.openshift.io/ |
| 31 | +helm repo update |
| 32 | +---- |
| 33 | + |
| 34 | +. Install the orchestrator infrastructure Helm chart: |
| 35 | ++ |
| 36 | +[source,bash] |
| 37 | +---- |
| 38 | +helm install <release_name> openshift-helm-charts/redhat-developer-hub-orchestrator-infra |
| 39 | +---- |
| 40 | + |
| 41 | +. Manually approve the install plans for OpenShift Serverless and Serverless Logic Operators. Wait until they are successfully deployed. |
| 42 | + |
| 43 | +. Install the Backstage chart with the orchestrator enabled: |
| 44 | ++ |
| 45 | +[source,bash] |
| 46 | +---- |
| 47 | +helm install <release_name> openshift-helm-charts/redhat-developer-hub --version 1.7.0 \ |
| 48 | + --set orchestrator.enabled=true |
| 49 | +---- |
| 50 | + |
| 51 | +. (Optional) Disable the installation of the Serverless Logic and Serverless Operators if they are managed externally: |
| 52 | ++ |
| 53 | +[source,bash] |
| 54 | +---- |
| 55 | +helm install <release_name> redhat-developer/backstage \ |
| 56 | + --set orchestrator.serverlessOperator=false \ |
| 57 | + --set orchestrator.serverlessLogicOperator=false |
| 58 | +---- |
| 59 | + |
| 60 | +. (Optional) Enable *Notifications* and *Signals* plugins by adding them under `global.dynamic.plugins` in your `values.yaml` file: |
| 61 | ++ |
| 62 | +[source,yaml] |
| 63 | +---- |
| 64 | +global: |
| 65 | + dynamic: |
| 66 | + plugins: |
| 67 | + - disabled: false |
| 68 | + package: "./dynamic-plugins/dist/backstage-plugin-notifications" |
| 69 | + - disabled: false |
| 70 | + package: "./dynamic-plugins/dist/backstage-plugin-signals" |
| 71 | + - disabled: false |
| 72 | + package: "./dynamic-plugins/dist/backstage-plugin-notifications-backend-dynamic" |
| 73 | + - disabled: false |
| 74 | + package: "./dynamic-plugins/dist/backstage-plugin-signals-backend-dynamic" |
| 75 | +---- |
| 76 | + |
| 77 | +. (Optional) If using an external database, add the following configuration under `orchestrator.sonataflowPlatform` in your `values.yaml` file: |
| 78 | ++ |
| 79 | +[source,yaml] |
| 80 | +---- |
| 81 | +orchestrator: |
| 82 | + sonataflowPlatform: |
| 83 | + externalDBsecretRef: "<cred-secret>" |
| 84 | + externalDBName: "<database_name>" |
| 85 | + externalDBHost: "<database_host>" |
| 86 | + externalDBPort: "<database_port>" |
| 87 | +---- |
| 88 | + |
| 89 | +[NOTE] |
| 90 | +==== |
| 91 | +This only configures the Orchestrator's use of an external database. To configure {product} to use an external PostgreSQL instance, follow the steps in: |
| 92 | +link:https://docs.redhat.com/en/documentation/red_hat_developer_hub/1.6/html/configuring_red_hat_developer_hub/configuring-external-postgresql-databases#proc-configuring-postgresql-instance-using-helm_configuring-external-postgresql-databases[Configuring a PostgreSQL instance using Helm]. |
| 93 | +==== |
| 94 | + |
| 95 | +.Verification |
| 96 | + |
| 97 | +. Verify that the orchestrator plugin is visible in the {product} UI. |
| 98 | + |
| 99 | +. Create and run sample workflows to confirm orchestration is functioning correctly. |
| 100 | + |
| 101 | +. Check the logs of the Orchestrator pod to verify workflow execution and plugin readiness. |
| 102 | +Use the following commands to check the Orchestrator pod logs: |
| 103 | ++ |
| 104 | +[source,bash] |
| 105 | +---- |
| 106 | +# List pods in the namespace |
| 107 | +oc get pods -n <namespace> |
| 108 | + |
| 109 | +# Replace <orchestrator-pod-name> with the actual pod name |
| 110 | +oc logs -n <namespace> <orchestrator-pod-name> |
| 111 | +---- |
| 112 | + |
| 113 | +. (Optional) Stream logs in real-time: |
| 114 | ++ |
| 115 | +[source,bash] |
| 116 | +---- |
| 117 | +oc logs -n <namespace> -f <orchestrator-pod-name> |
| 118 | +---- |
0 commit comments