guestbook
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.
| Parameter | Description | Default |
|---|---|---|
image.repository | Image repository | resouer/guestbook |
image.tag | Image tag | v1 |
image.pullPolicy | Image pull policy | Always |
service.type | Service type | LoadBalancer |
service.port | Service port | 3000 |
redis.slaveEnabled | Redis slave enabled | true |
redis.port | Redis port | 6379 |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartguestbook is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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