1. Deploy the newrelic-infrastructure helm chart on Kubernetes


    To deploy the newrelic-infrastructure Helm chart on Kubernetes, we'll use the Pulumi Kubernetes provider. Below, you’ll find a Pulumi program that defines the necessary resources to achieve this.

    We will perform the following steps:

    1. Import the required Pulumi and Kubernetes packages.
    2. Create a Helm chart resource specifying the details for the newrelic-infrastructure chart.
    3. Deploy this chart to our Kubernetes cluster.

    Here's a Pulumi program in TypeScript that accomplishes this:

    import * as k8s from "@pulumi/kubernetes"; // Step 1: Prepare the configuration for the New Relic Infrastructure Helm chart. // Define specifics such as the chart name, version, repository etc. const newrelicChart = new k8s.helm.v3.Chart("newrelic-infrastructure", { chart: "newrelic-infrastructure", version: "YOUR_CHART_VERSION", // specify the chart version here fetchOpts: { repo: "https://helm-charts.newrelic.com", // New Relic Helm charts repository }, // Specify any custom values required for the New Relic Infrastructure chart. // See the chart's documentation for all available options. values: { // For example: // licenseKey: YOUR_NEW_RELIC_LICENSE_KEY, // cluster: YOUR_KUBERNETES_CLUSTER_NAME, // ... }, // Optionally, specify the namespace where you want to deploy the chart, default is "default". namespace: "newrelic" // Change to desired namespace if needed. }); // Export the name of the chart. export const chartName = newrelicChart.metadata.name;

    Please replace "YOUR_CHART_VERSION" with the specific version of the chart you wish to install. You can find the chart versions in the New Relic Helm chart repository. You should also replace the values field with the correct configuration options for your New Relic integration. This typically includes your New Relic license key and may include other settings based on your monitoring needs.

    After writing this program:

    1. Ensure you have Pulumi installed and set up to work with your Kubernetes cluster.
    2. Save the above code to a file named index.ts.
    3. Run pulumi up from the command line in the directory where you saved index.ts.
    4. Pulumi CLI will prompt you with an update plan and ask for your confirmation to deploy.
    5. Once confirmed, Pulumi will deploy the Helm chart to your Kubernetes cluster.

    Remember to check the New Relic Infrastructure Helm chart documentation for any specific setup or dependencies required for the chart.