1. Deploy the workflow-manager helm chart on Rancher


    Deploying a Helm chart on Rancher involves several steps. First, you need to set up the Rancher Kubernetes cluster where the Helm chart will be deployed. Once the cluster is ready, you can install the Helm chart by defining a CatalogV2 resource, which specifies the Helm chart repository, and then creating a HelmChart resource to deploy the chart to the cluster.

    Below is a step-by-step Pulumi program written in TypeScript which deploys a Helm chart called workflow-manager to a cluster managed by Rancher:

    1. Set up the Rancher Cluster: Before deploying the Helm chart, you need to have a Kubernetes cluster managed by Rancher. The rancher2.Cluster resource can be used to create or manage a Kubernetes cluster in Rancher.

    2. Create a CatalogV2 resource: This defines the Helm chart repository in Rancher. It requires specifying the URL of the Helm chart repository.

    3. Deploy HelmChart resource: This resource will deploy the workflow-manager Helm chart from the catalog you have defined.

    Here's a Pulumi TypeScript program that demonstrates this:

    import * as rancher2 from "@pulumi/rancher2"; import * as k8s from "@pulumi/kubernetes"; import * as pulumi from "@pulumi/pulumi"; // Create a new Rancher Cluster (this assumes a pre-existing Rancher setup) const cluster = new rancher2.Cluster("my-cluster", { // ... include appropriate cluster configuration ... // Documentation for `rancher2.Cluster`: https://www.pulumi.com/registry/packages/rancher2/api-docs/cluster/ }); // Create a Catalog for the Helm repository (if it does not already exist) const catalog = new rancher2.CatalogV2("workflow-manager-catalog", { clusterId: cluster.id, url: "<URL_OF_HELM_CHART_REPOSITORY>", // Documentation for `rancher2.CatalogV2`: https://www.pulumi.com/registry/packages/rancher2/api-docs/catalogv2/ }); // Create a Helm Chart resource for the Workflow Manager const workflowManagerChart = new rancher2.HelmChart("workflow-manager-chart", { clusterId: cluster.id, chartName: "workflow-manager", repositoryUrl: catalog.url, // Use the repository URL from the CatalogV2 resource namespace: "default", // Change this to the namespace where you want to install the chart version: "1.0.0", // Specify the version of the chart // ... include other chart values as required ... // Documentation for deploying Helm charts in Rancher: https://www.pulumi.com/registry/packages/rancher2/api-docs/helmchart/ }); // Export any relevant information export const clusterName = cluster.name; export const helmChartName = workflowManagerChart.chartName;

    This program configures a new Rancher-managed Kubernetes cluster, then proceeds to deploy the Helm chart to it. Please note that "<URL_OF_HELM_CHART_REPOSITORY>" should be replaced with the actual URL of the Helm chart repository where the workflow-manager chart is located, and "1.0.0" should be the version of the Helm chart you wish to deploy.

    Remember, this code assumes that you have a pre-existing Rancher environment and appropriate permissions to manage resources within it. The specific configuration options for the rancher2.Cluster resource would vary based on your requirements, like the cloud provider and cluster specifications you want to use.

    Before you run this Pulumi program, ensure that you have set up the Pulumi CLI and the Rancher2 provider with appropriate credentials. Then you would typically run pulumi up to preview and deploy these resources.

    Please verify the exact names and parameters required for the workflow-manager Helm chart and adjust the chartName and version fields accordingly. If the chart requires specific configuration values, you can include them in the program above by extending the values parameter within the rancher2.HelmChart resource.