mywebapp
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
| Parameter | Description | Default |
|---|---|---|
replicaCount | Number of replicas | 2 |
image.repository | Docker image repository | nginx |
image.tag | Docker image tag | latest |
image.pullPolicy | Image pull policy | IfNotPresent |
service.type | Kubernetes service type | ClusterIP |
service.port | Service port | 80 |
config.homepage | Custom 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmywebapp is pinned at v0.1.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