web
by HazelOps
A simple web application using Istio and Ingress-nginx. Monitoring provided by Datadog.
About this chart
web
A simple web application using Istio and Ingress-nginx.
Requirements
Kubernetes: >=1.20.0-0
Ingress-Nginx: >=4.8.3
Istio: >=1.19
Usage
Get Repo Info
helm repo add hazelops https://hazelops.github.io/charts/
helm repo update
A simple install with default values:
Important: only helm3 is supported
helm install [RELEASE_NAME] hazelops/web
The command deploys web chart on the Kubernetes cluster in the default configuration.
See configuration below.
See helm install for command documentation.
To install with some set values:
helm install [RELEASE_NAME] hazelops/web --set values_key1=value1 --set values_key2=value2
To install with Istio enabled:
helm install [RELEASE_NAME] hazelops/web --set global.istio.enabled=true --set global.ingress.enabled=false
To install with Ingress-Nginx enabled:
helm install [RELEASE_NAME] hazelops/web --set global.istio.enabled=false --set global.ingress.enabled=true
Uninstall Chart
helm uninstall [RELEASE_NAME]
This removes all the Kubernetes components associated with the chart and deletes the release.
See helm uninstall for command documentation.
Upgrading Chart
helm upgrade [RELEASE_NAME] [CHART] --install
See helm upgrade for command documentation.
Configuration
See Customizing the Chart Before Installing. To see all configurable options with detailed comments, visit the chart's values.yaml, or run these configuration commands:
helm show values hazelops/web
Datadog monitoring:
In order to use Datadog monitoring options - Datadog must be installed in the cluster. Otherwise, application monitoring with Datadog will not work.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| global.app.containerName | string | "" | |
| global.app.domain | string | "domain.local" | |
| global.app.name | string | "app" | |
| global.app.region | string | "aws-region" | |
| global.app.replicas | int | 1 | |
| global.env | string | "local" | |
| global.gateway.tlsIssuer | string | "" | |
| global.hpa.behavior.scaleDown.percentPeriodSeconds | int | 60 | |
| global.hpa.behavior.scaleDown.percentValue | int | 10 | |
| global.hpa.behavior.scaleDown.podsPeriodSeconds | int | 60 | |
| global.hpa.behavior.scaleDown.podsValue | int | 5 | |
| global.hpa.behavior.scaleDown.selectPolicy | string | "MIN" | |
| global.hpa.behavior.scaleDown.stabilizationWindowSeconds | int | 0 | |
| global.hpa.behavior.scaleUp.percentPeriodSeconds | int | 15 | |
| global.hpa.behavior.scaleUp.percentValue | int | 100 | |
| global.hpa.behavior.scaleUp.podsPeriodSeconds | int | 15 | |
| global.hpa.behavior.scaleUp.podsValue | int | 5 | |
| global.hpa.behavior.scaleUp.selectPolicy | string | "MAX" | |
| global.hpa.behavior.scaleUp.stabilizationWindowSeconds | int | 0 | |
| global.hpa.command | string | "" | |
| global.hpa.enabled | bool | false | |
| global.hpa.image.imagePullPolicy | string | "Always" | |
| global.hpa.image.repository | string | "<aws-account-id>.dkr.ecr.<aws-region>.amazonaws.com/<app-name>" | |
| global.hpa.image.tag | string | "dev-latest" | |
| global.hpa.maxReplicas | int | 4 | |
| global.hpa.metrics.cpuUtilization | int | 50 | |
| global.hpa.metrics.memoryUtilization | string | "3Gi" | |
| global.hpa.minReplicas | int | 2 | |
| global.hpa.variables.list.APP_NAME | string | "" | |
| global.iam_roles.r53 | string | "" | |
| global.iam_roles.ssm | string | "" | |
| global.ingress.create_certificate | bool | false | |
| global.ingress.domain | string | "domain.local" | |
| global.ingress.enabled | bool | false | |
| global.ingress.port | int | 3000 | |
| global.ingress.tls_certificate_name | string | "" | |
| global.istio.create_certificate | bool | false | |
| global.istio.domain | string | "domain.local" | |
| global.istio.enabled | bool | false | |
| global.istio.port | int | 3000 | |
| global.istio.tls_certificate_name | string | "" | |
| global.secrets.app | string | "" | |
| global.secrets.list[0] | string | "" | |
| global.service.port | int | 3000 | |
| global.service.targetPort | int | 3000 |
Deploy web with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has web 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 chartweb is pinned at v0.4.3 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