metral / octumi

Deploy VMware Octant on a EKS Cluster using Pulumi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

octumi

Deploy VMware Octant on an Amazon EKS cluster using Pulumi.

Pre-Requisites

  1. Install Pulumi.
  2. Install Node.js.
  3. Install a package manager for Node.js, such as NPM or Yarn.
  4. Configure AWS Credentials.
  5. Install AWS IAM Authenticator for Kubernetes.
  6. Install kubectl.

Initialize the Pulumi Project

  1. Clone the repo:

    git clone https://github.com/metral/octumi
    cd octumi
  2. Install the dependencies.

    npm install
  3. Create a new Pulumi stack named dev.

    pulumi stack init dev
  4. Set the Pulumi configuration variables for the project.

    Note: Select any valid EKS region.

    pulumi config set aws:region us-west-2

Create an EKS cluster and Deploy the Workload and Octant

Create the cluster and deploy the workload by running an update:

pulumi up

The update takes ~15 minutes.

Once the update is complete, verify the cluster, node groups, and Pods are up and running:

pulumi stack output kubeconfig > kubeconfig.json && export KUBECONFIG=$PWD/kubeconfig.json
kubectl get nodes -o wide --show-labels
kubectl get pods --all-namespaces -o wide --show-labels

Access the Workload and Octant

Visit the URL's stored in the output for NGINX and Octant:

pulumi stack output nginxUrl
pulumi stack output octantUrl

Clean Up

Run the following command to tear down the resources that are part of our stack.

  1. Run pulumi destroy to tear down all resources. You'll be prompted to make sure you really want to delete these resources.

    pulumi destroy
  2. To delete the stack, run the following command.

    pulumi stack rm

    Note: This command deletes all deployment history from the Pulumi Console and cannot be undone.

About

Deploy VMware Octant on a EKS Cluster using Pulumi


Languages

Language:TypeScript 100.0%