web

by HazelOps

Helm chartv0.4.3App 1.3.1Verified publisher

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

KeyTypeDefaultDescription
global.app.containerNamestring""
global.app.domainstring"domain.local"
global.app.namestring"app"
global.app.regionstring"aws-region"
global.app.replicasint1
global.envstring"local"
global.gateway.tlsIssuerstring""
global.hpa.behavior.scaleDown.percentPeriodSecondsint60
global.hpa.behavior.scaleDown.percentValueint10
global.hpa.behavior.scaleDown.podsPeriodSecondsint60
global.hpa.behavior.scaleDown.podsValueint5
global.hpa.behavior.scaleDown.selectPolicystring"MIN"
global.hpa.behavior.scaleDown.stabilizationWindowSecondsint0
global.hpa.behavior.scaleUp.percentPeriodSecondsint15
global.hpa.behavior.scaleUp.percentValueint100
global.hpa.behavior.scaleUp.podsPeriodSecondsint15
global.hpa.behavior.scaleUp.podsValueint5
global.hpa.behavior.scaleUp.selectPolicystring"MAX"
global.hpa.behavior.scaleUp.stabilizationWindowSecondsint0
global.hpa.commandstring""
global.hpa.enabledboolfalse
global.hpa.image.imagePullPolicystring"Always"
global.hpa.image.repositorystring"<aws-account-id>.dkr.ecr.<aws-region>.amazonaws.com/<app-name>"
global.hpa.image.tagstring"dev-latest"
global.hpa.maxReplicasint4
global.hpa.metrics.cpuUtilizationint50
global.hpa.metrics.memoryUtilizationstring"3Gi"
global.hpa.minReplicasint2
global.hpa.variables.list.APP_NAMEstring""
global.iam_roles.r53string""
global.iam_roles.ssmstring""
global.ingress.create_certificateboolfalse
global.ingress.domainstring"domain.local"
global.ingress.enabledboolfalse
global.ingress.portint3000
global.ingress.tls_certificate_namestring""
global.istio.create_certificateboolfalse
global.istio.domainstring"domain.local"
global.istio.enabledboolfalse
global.istio.portint3000
global.istio.tls_certificate_namestring""
global.secrets.appstring""
global.secrets.list[0]string""
global.service.portint3000
global.service.targetPortint3000

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartweb is pinned at v0.4.3 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