auto-deploy-app

by djcass44

Helm chartv0.15.4MITVerified publisher

GitLab's Auto-deploy Helm Chart

About this chart

Auto-deploy Helm Chart

This chart is an opinionated fork of GitLab's Auto-deploy Helm chart. It removes a number of un-needed features (e.g. psql deployments) and provides greater options for security.

This chart aims to provide a 1-size-fits-all chart for deploying a single application.

Requirements

  • Helm 3
  • Kubernetes 1.16+

Configuration

ParameterDescriptionDefault
replicaCount1
strategyType Pod deployment strategynil
commandContainer command
argsContainer arguments
image.repositorygcr.io/google-containers/echoserver
image.tag1.10
image.shaContainer SHA to use. Overrides image.tag
image.pullPolicyAlways
image.secrets[name: gitlab-registry]
podAnnotationsPod annotations{}
podLabelsPod labels{}
nodeSelectorNode labels for pod assignment{}
tolerationsList of node taints to tolerate[]
security.podContextPrivilege and access control settings for the Pod{}
security.containerContextPrivilege and access control settings for the Container{}
application.trackstable
application.tierweb
application.secretNamePass in the name of a Secret which the deployment will load all key-value pairs from the Secret as environment variables in the application container.nil
application.secretChecksumPass in the checksum of the secrets referenced by application.secretName.nil
hpa.enabledIf true, enables horizontal pod autoscaler. A resource request is also required to be set, such as resources.requests.cpu: 200m.false
hpa.minReplicas1
hpa.maxReplicas5
hpa.targetCPUUtilizationPercentageCPU utilisation percentage threshold when HPA begins scaling out pods80

Deploy auto-deploy-app with OpenTenant

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