1. Deploy the yumimap helm chart on AWS EKS


    To deploy the yumimap Helm chart on an AWS EKS cluster, you need to perform the following steps:

    1. Create an EKS Cluster: You'll need to create an Amazon EKS cluster where your Kubernetes applications can run.
    2. Deploy Helm Chart: Once you have an EKS cluster running, you can deploy Helm charts to it.

    For this task, the following resources are key:

    • aws.eks.Cluster: To create and manage an EKS cluster.
    • helm.v3.Chart: To deploy Helm charts in Kubernetes.

    Here's how you can do it using Pulumi with TypeScript:

    Step 1: Install the Pulumi CLI and set up AWS credentials

    Make sure to have the Pulumi CLI installed and AWS credentials configured on your machine. This isn't covered in the TypeScript program itself, but it's a prerequisite to run the Pulumi program successfully.

    Step 2: Write the Pulumi Program

    Create a new directory and generate a new Pulumi project there by running pulumi new aws-typescript.

    Replace the contents of index.ts with the following TypeScript program:

    import * as pulumi from "@pulumi/pulumi"; import * as aws from "@pulumi/aws"; import * as eks from "@pulumi/eks"; import * as k8s from "@pulumi/kubernetes"; // Step 1: Create a new EKS cluster. const cluster = new eks.Cluster("my-eks-cluster", { instanceType: "t2.medium", desiredCapacity: 2, minSize: 1, maxSize: 3, }); // Export the cluster's kubeconfig. export const kubeconfig = cluster.kubeconfig; // Step 2: Deploy the yumimap Helm chart to the EKS cluster. const yumimapChart = new k8s.helm.v3.Chart("yumimap", { chart: "yumimap", // Specify the Helm chart version you want to deploy. // version: "1.0.0", (Uncomment this line if you need a specific version) fetchOpts:{ // Replace this with the actual repo URL that hosts the yumimap chart. repo: "https://charts.your-repo.com", }, }, { provider: cluster.provider }); // If you have any specific configuration values that you want to pass to the Helm chart, // you can include an additional `values` property in the `Chart` args.

    Step 3: Deploy the Pulumi Program

    Run the following commands:

    pulumi up

    This command will provision all the resources described in index.ts and deploy the yumimap Helm chart on the EKS cluster.


    • The eks.Cluster resource creates an EKS cluster. You must specify the instance type, desired capacity, and the minimum and maximum size of your worker node group.
    • The kubeconfig is exported so you can interact with the cluster using tools like kubectl.
    • The k8s.helm.v3.Chart resource is utilized to deploy Helm charts to Kubernetes. You will need to specify the chart name and the repository where the Helm chart is stored. Optionally, you can specify the version of the Helm chart.
    • The options provider: cluster.provider tell the Helm chart to deploy on the created EKS cluster.

    Next Steps

    After running pulumi up, Pulumi will print out the kubeconfig as an output. You can configure kubectl to interact with your new EKS cluster.

    Remember to replace the placeholder https://charts.your-repo.com with the actual repository URL containing the yumimap Helm chart, and optionally, specify the chart version you want to install.

    Review the Pulumi documentation for more information on the EKS Cluster and Helm Chart resources.