podinfo

by Flux

Helm chartv6.1.4App 6.1.3

Flagger canary deployment demo application

About this chart

Podinfo

Podinfo is a tiny web application made with Go that showcases best practices of running canary deployments with Flagger and Istio.

Installing the Chart

Add Flagger Helm repository:

helm repo add flagger https://flagger.app

To install the chart with the release name frontend:

helm upgrade -i frontend flagger/podinfo \
--namespace test \
--set nameOverride=frontend \
--set backend=http://backend.test:9898/echo \
--set canary.enabled=true \
--set canary.istioIngress.enabled=true \
--set canary.istioIngress.gateway=istio-system/public-gateway \
--set canary.istioIngress.host=frontend.istio.example.com

To install the chart as backend:

helm upgrade -i backend flagger/podinfo \
--namespace test \
--set nameOverride=backend \
--set canary.enabled=true 

Uninstalling the Chart

To uninstall/delete the frontend deployment:

$ helm delete --purge frontend

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following tables lists the configurable parameters of the podinfo chart and their default values.

ParameterDescriptionDefault
image.repositoryimage repositoryquay.io/stefanprodan/podinfo
image.tagimage tag<VERSION>
image.pullPolicyimage pull policyIfNotPresent
hpa.enabledenables HPAtrue
hpa.cputarget CPU usage per pod80
hpa.memorytarget memory usage per pod512Mi
hpa.minReplicasmaximum pod replicas2
hpa.maxReplicasmaximum pod replicas4
resources.requests/cpupod CPU request1m
resources.requests/memorypod memory request16Mi
backendbackend URLNone
faults.delayrandom HTTP response delays between 0 and 5 secondsfalse
faults.error1/3 chances of a random HTTP response errorfalse

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

$ helm install flagger/podinfo --name frontend \
  --set=image.tag=1.4.1,hpa.enabled=false

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install flagger/podinfo --name frontend -f values.yaml

Deploy podinfo with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has podinfo on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpodinfo is pinned at v6.1.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply