mywebapp

by srikanth-karthi

Helm chartv0.1.0App 1.0Verified publisher

A Helm chart for deploying a custom Nginx web application

About this chart

MyWebApp Helm Chart

A Helm chart for deploying a custom Nginx web application to Kubernetes.

Features

  • Custom HTML homepage via ConfigMap
  • Configurable replicas
  • Health checks (liveness and readiness probes)
  • Easy parameterization for multiple environments

Installation

helm install mywebapp ./mywebapp

Configuration

ParameterDescriptionDefault
replicaCountNumber of replicas2
image.repositoryDocker image repositorynginx
image.tagDocker image taglatest
image.pullPolicyImage pull policyIfNotPresent
service.typeKubernetes service typeClusterIP
service.portService port80
config.homepageCustom HTML homepage content<h1>Welcome to My WebApp!</h1>...

Examples

Install with custom homepage

helm install mywebapp ./mywebapp \
  --set config.homepage="<h1>Production Site</h1>"

Install with 3 replicas

helm install mywebapp ./mywebapp \
  --set replicaCount=3

Upgrade deployment

helm upgrade mywebapp ./mywebapp \
  --set config.homepage="<h1>Updated!</h1>"

Rollback to previous version

helm rollback mywebapp 1

Uninstallation

helm uninstall mywebapp

Testing

Verify the chart:

helm lint ./mywebapp

Dry run to see generated manifests:

helm install mywebapp ./mywebapp --dry-run --debug

Deploy mywebapp with OpenTenant

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