guestbook

by joaquinito2051

Helm chartv0.2.0App 1.0.0Apache-2.0

A Helm chart to deploy Guestbook three tier web application.

About this chart

guestbook: an example chart for educational purpose.

This chart provides example of some of the important features of Helm.

The chart installs a guestbook application.

Installing the Chart

Add the repository to your local environment:

$ helm repo add apphub https://apphub.aliyuncs.com

To install the chart with release name of guestbook:

$ helm install guestbook apphub/guestbook

Configuration

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

ParameterDescriptionDefault
image.repositoryImage repositoryresouer/guestbook
image.tagImage tagv1
image.pullPolicyImage pull policyAlways
service.typeService typeLoadBalancer
service.portService port3000
redis.slaveEnabledRedis slave enabledtrue
redis.portRedis port6379

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

$ helm install apphub/guestbook --set service.type=NodePort

Use Kustomize to configure the application

TBD

Use Kruise to upgrade the application

TBD: Link to Kruise Tutorial

Uninstalling the Chart

To completely uninstall/delete the guestbook deployment:

$ helm delete --purge guestbook

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

Deploy guestbook with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has guestbook 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 chartguestbook is pinned at v0.2.0 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