Deploy the amundsen helm chart on Azure Managed Openshift Service
TypeScriptDeploying the Amundsen Helm chart on an Azure Managed OpenShift Service is a two-part process. First, we must provision an Azure Red Hat OpenShift (ARO) cluster, and second, deploy the Helm chart onto that ARO cluster.
Provisioning Azure Red Hat OpenShift Cluster
For the first part of the process, we'll provision the ARO cluster using the
azure-native.redhatopenshift.OpenShiftCluster
resource. This will create the required infrastructure on Azure for running OpenShift, which is the platform that'll host the Amundsen Helm chart.Deploying Amundsen Helm Chart
Once the OpenShift cluster is up and running, we'll deploy the Amundsen application using the Helm chart through Pulumi's
kubernetes.helm.sh/v3.Chart
resource. This is a standard way to deploy applications on Kubernetes through predefined charts which consist of a collection of YAML configuration files that define the resources to be created.Below is a Pulumi TypeScript program that demonstrates these steps. Ensure you have Pulumi CLI installed and configured for Azure, and that
kubectl
is configured to connect to your Azure Red Hat OpenShift cluster.import * as pulumi from '@pulumi/pulumi'; import * as azure_native from '@pulumi/azure-native'; import * as kubernetes from '@pulumi/kubernetes'; // Create an Azure Resource Group if one doesn't exist const resourceGroup = new azure_native.resources.ResourceGroup('myResourceGroup'); // Provision an Azure Red Hat OpenShift (ARO) cluster const openshiftCluster = new azure_native.redhatopenshift.OpenShiftCluster('myAROCluster', { // Replace with your desired location and settings location: 'eastus', resourceGroupName: resourceGroup.name, // It's recommended to configure these properties according to your needs }); // Configuration for the Amundsen Helm chart deployment const amundsenChart = new kubernetes.helm.v3.Chart('amundsen', { // A proper repo URL where the Amundsen Helm chart is hosted should be set here // For the sake of this example, we assume the chart is hosted on some example repository repo: 'example-helm-charts', chart: 'amundsen', values: { // Your services' configurations and any other customizations }, // Set up the correct namespace if necessary namespace: 'default', }, { provider: createK8sProvider(openshiftCluster.kubeconfig) }); // Helper function to create a Kubernetes provider from the ARO kubeconfig function createK8sProvider(kubeconfig: pulumi.Input<string>): kubernetes.Provider { return new kubernetes.Provider('k8sProvider', { kubeconfig, }); } // Export the OpenShift cluster properties export const clusterName = openshiftCluster.name; export const clusterLoginURL = openshiftCluster.consoleUrl;
In this program, you'll need to replace placeholders with actual values such as the location where you want your resources created or the repository URL where the Amundsen Helm chart is hosted. The
values
field in the Helm chart is where you can configure Amundsen-specific settings.After running this Pulumi program with
pulumi up
, you should have an ARO cluster running and the Amundsen Helm chart deployed onto it.Please adjust the
chart
,values
, andrepo
properties of thekubernetes.helm.sh/v3.Chart
according to the specific Amundsen Helm Chart you intend to deploy. You would typically find this information in the documentation provided with the Helm chart.