Skip to content

2. Webserver

What Will You Do

For this exercise,

  • You will configure and deploy the provided Helm chart on your managed Kubernetes cluster
  • The provided Helm chart comprises multiple containers in the same Kubernetes pod.

Assumptions

You have already provisioned or imported one or more Kubernetes clusters using the Controller


Step 1: Create and Configure Workload

  • Login into the Web Console
  • Click on "New Workload", provide a name
  • Select "Helm" for Package Type
  • Select a namespace where you would like to deploy.

Create Workload


Step 2: Upload Helm Chart

  • Click to Download the example Helm chart
  • Upload the Helm chart file (TGZ format) for the workload
  • Ignore the Values.yaml file upload step because we will be using the default values from the Helm chart

Upload Helm Chart


Step 3: Place and Deploy

Navigate to "Placement" and select the cluster where you would like to deploy the helm chart

Placement


Step 4: Publish Workload

Navigate to the "Publish" and click on Publish.

Publish


Step 5: Check Workload Status

Once publish starts, click on "Debug"

You should see the pods for the "webserver" workload get deployed on the selected cluster. Wait for the pods to transition to "Running" state. You should see one pod become operational with "two containers" in it.

Debug

Click on "Show Events" and you should that the cluster would have pulled and deployed two images

  1. A "nginx:1.17" container and
  2. A "webapp:latest" container

Debug


Recap

Congratulations! You have successfully deployed a Helm chart with "multiple containers per pod" using the Controller to a select number of managed clusters.