Skip to content

Latest commit

 

History

History
77 lines (53 loc) · 1.96 KB

option-helm.md

File metadata and controls

77 lines (53 loc) · 1.96 KB

Create a Helm chart to deploy an application

You Will Need


Setup

Once the above tooling is installed, create your Kubernetes cluster and deploy an ingress controller.

Bash

kind create cluster --wait --config ./resources/cluster.yaml

kubectl apply -f ./resources/ingress.yaml

kubectl wait --namespace ingress-nginx \
  --for=condition=ready pod \
  --selector=app.kubernetes.io/component=controller \
  --timeout=90s

Once the cluster is setup, http://localhost:8080 should return a 404 error.

Powershell

kind create cluster --wait --config ./resources/cluster.yaml

kubectl apply -f ./resources/ingress.yaml

kubectl wait --namespace ingress-nginx `
  --for=condition=ready pod `
  --selector=app.kubernetes.io/component=controller `
  --timeout=90s

Once the cluster is setup, http://localhost:8080 should return a 404 error.


Task

  • Create a Helm chart to deploy the http-echo application
  • The application's image name and tag is hashicorp/http-echo:0.2.3
  • The application requires the following arguments
    • --text=hello
  • The Helm chart must include the following resources at a minimum
    • Ingress
    • Deployment
  • Think about what else should be in a production ready chart

Testing

  • helm lint must not fail
  • When deployed to the cluster, curl http://localhost:8080 must return hello

References