auto-deploy-app
by clayrisser
Helm chartv2.100.2MITVerified publisher
GitLab's Auto-deploy Helm Chart
About this chart
GitLab's Auto-deploy Helm Chart
Requirements
- Helm
2.9.0and above is required in order support"helm.sh/hook-delete-policy": before-hook-creationfor migrations
Configuration
| Parameter | Description | Default |
|---|---|---|
| replicaCount | 1 | |
| strategyType | Pod deployment strategy | nil |
| serviceAccountName(DEPRECATED) | Pod service account name override | nil |
| serviceAccount.name | Name of service account to use for running the pods | nil |
| serviceAccount.createNew | If set to true, a new service account will be created with the details specified in the other fields under serviceAccount. If set to false, the service account specified in serviceAccount.name is expected to already exist. | false |
| serviceAccount.annotations | Annotations for the service account to be created | nil |
| image.repository | gitlab.example.com/group/project | |
| image.tag | stable | |
| image.pullPolicy | Always | |
| image.secrets | [name: gitlab-registry] | |
| extraLabels | Allow labelling resources with custom key/value pairs | {} |
| lifecycle | Container lifecycle hooks | {} |
| podAnnotations | Pod annotations | {} |
| hostNetwork | Use the host's network namespace. | false |
| dnsPolicy | Pod DNS policy | {} |
| dnsConfig | Pod DNS config | {} |
| nodeSelector | Node labels for pod assignment | {} |
| securityContext | SecurityContext definition for deployment | {} |
| containerSecurityContext | SecurityContext definition for containers | {} |
| tolerations | List of node taints to tolerate | [] |
| priorityClassName | Assign node priority from priorityClass | "" |
| terminationGracePeriodSeconds | The amount of time in seconds a pod is given to terminate | See the Kubernetes API for reference |
| hostAliases | If present, this will set static hosts to the pod configuration | See the Kubernetes API for reference |
| initContainers | Containers that are run before the app containers are started. | [] |
| topologySpreadConstraints | Pod Topology Spread Constraints | [] |
| affinity | Node affinity for pod assignment | {} |
| application.track | stable | |
| application.tier | web | |
| application.migrateCommand | If present, this variable will run as a shell command within an application Container as a Helm pre-upgrade Hook. Intended to run migration commands. | nil |
| application.initializeCommand | If present, this variable will run as shell command within an application Container as a Helm post-install Hook. Intended to run database initialization commands. When set, the Deployment and Cronjob resources will be skipped. | nil |
| application.secretName | Pass 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.secretChecksum | Pass in the checksum of the secrets referenced by application.secretName. | nil |
| application.database_url | If present, sets the DATABASE_URL environment variable. If postgres is enabled this will be autogenerated. | nil |
| application.command | If present, overrides docker image ENTRYPOINT. Needs to be an array. | nil |
| application.args | If present, overrides docker image CMD. Needs to be an array. | nil |
| hpa.enabled | If true, enables horizontal pod autoscaler. A resource request is also required to be set, such as resources.requests.cpu: 200m. | false |
| hpa.minReplicas | 1 | |
| hpa.maxReplicas | 5 | |
| hpa.targetCPUUtilizationPercentage | autoscaling/v1 - Percentage threshold for when HPA begins scaling out pods. Ignored if hpa.metrics is present. | nil |
| hpa.metrics | autoscaling/v2 metrics definitions for when HPA begins scaling out pods. | nil |
| gitlab.app | GitLab project slug. | nil |
| gitlab.env | GitLab environment slug. | nil |
| gitlab.envName | GitLab environment name. | nil |
| gitlab.envURL | GitLab environment URL. | nil |
| gitlab.projectID | Gitlab project ID. | nil |
| service.enabled | true | |
| service.annotations | Service annotations | {} |
| service.name | web | |
| service.type | ClusterIP | |
| service.nodePort | Used to set NodePort number if service.type == 'NodePort' | 0 (random) |
| service.url | http://my.host.com/ | |
| service.additionalHosts | If present, this list will add additional hostnames to the server configuration. | nil |
| service.commonName | If present, this will define the ssl certificate common name to be used by CertManager. service.url and service.additionalHosts will be added as Subject Alternative Names (SANs) | nil |
| service.externalPort | 5000 | |
| service.internalPort | 5000 | |
| service.extraPorts | List of additional service port definitions | [] |
| service.extraPorts.port | Integer external port number | nil |
| service.extraPorts.targetPort | Integer container port number | nil |
| service.extraPorts.protocol | Protocol of the service port definition | nil |
| service.extraPorts.name | Name of the service port definition | nil |
| ingress.enabled | If true, enables ingress | true |
| ingress.className | The name of the ingress class to use. When present, sets ingressClassName and kubernetes.io/ingress.class as appropriate. | nil |
| ingress.path | Default path for the ingress | / |
| ingress.tls.enabled | If true, enables SSL | true |
| ingress.tls.acme | Controls kubernetes.io/tls-acme annotation | true |
| ingress.tls.secretName | Name of the secret used to terminate SSL traffic | "" |
| ingress.tls.useDefaultSecret | If set to true, the secretName is not used, which makes Ingress fall back to the default secret (certificate). This requires configuration of the default secret. | false |
| ingress.modSecurity.enabled | Enable custom configuration for modsecurity, defaulting to the Core Rule Set | false |
| ingress.modSecurity.secRuleEngine | Configuration for ModSecurity's rule engine | DetectionOnly |
| ingress.modSecurity.secRules | Configuration for custom ModSecurity's rules | nil |
| ingress.annotations | Ingress annotations | See _ingress-annotations.yaml |
| livenessProbe.enabled | If true, enables liveness probe. | / |
| livenessProbe.path | Path to access on the HTTP server on periodic probe of container liveness. | / |
| livenessProbe.scheme | Scheme to access the HTTP server (HTTP or HTTPS). | HTTP |
| livenessProbe.httpHeaders | List of additional custom headers to send on the server | [] |
| livenessProbe.httpHeaders.name | Name of the custom header | nil |
| livenessProbe.httpHeaders.value | Value of the header | nil |
| livenessProbe.initialDelaySeconds | # of seconds after the container has started before liveness probes are initiated. | 15 |
| livenessProbe.timeoutSeconds | # of seconds after which the liveness probe times out. | 15 |
| livenessProbe.probeType | Type of liveness probe to use. | httpGet |
| livenessProbe.command | Commands for use with probe type 'exec'. | {} |
| readinessProbe.enabled | If true, enables readiness probe. | / |
| readinessProbe.path | Path to access on the HTTP server on periodic probe of container readiness. | / |
| readinessProbe.scheme | Scheme to access the HTTP server (HTTP or HTTPS). | HTTP |
| readinessProbe.httpHeaders | List of additional custom headers to send on the server | [] |
| readinessProbe.httpHeaders.name | Name of the custom header | nil |
| readinessProbe.httpHeaders.value | Value of the header | nil |
| readinessProbe.initialDelaySeconds | # of seconds after the container has started before readiness probes are initiated. | 5 |
| readinessProbe.timeoutSeconds | # of seconds after which the readiness probe times out. | 3 |
| readinessProbe.probeType | Type of readiness probe to use. | httpGet |
| readinessProbe.command | Commands for use with probe type 'exec'. | {} |
| startupProbe.enabled | If true, enables startup probe. | / |
| startupProbe.path | Path to access on the HTTP server on periodic probe of container startup. | / |
| startupProbe.scheme | Scheme to access the HTTP server (HTTP or HTTPS). | HTTP |
| startUpProbe.httpHeaders | List of additional custom headers to send on the server | [] |
| startUpProbe.httpHeaders.name | Name of the custom header | nil |
| startUpProbe.httpHeaders.value | Value of the header | nil |
| startupProbe.initialDelaySeconds | # of seconds after the container has started before startup probes are initiated. | 5 |
| startupProbe.timeoutSeconds | # of seconds after which the startup probe times out. | 3 |
| startupProbe.failureThreshold | # of times, Kubernetes will retry failed probes before giving up. | 30 |
| startupProbe.periodSeconds | How often (in seconds) to perform the probe. | 10 |
| startupProbe.probeType | Type of startup probe to use. | httpGet |
| startupProbe.command | Commands for use with probe type 'exec'. | {} |
| postgresql.managed | If true, this will provision a managed Postgres instance via crossplane. | false |
| postgresql.managedClassSelector | This will allow provisioning a Postgres instance based on label selectors via Crossplane, eg: managedClassSelector.matchLabels.stack: gitlab. The postgresql.managed value should be true as well for this to be honoured. Crossplane Configuration | {} |
| podDisruptionBudget.enabled | false | |
| podDisruptionBudget.maxUnavailable | 1 | |
| podDisruptionBudget.minAvailable | If present, this variable will configure minAvailable in the PodDisruptionBudget. :warning: if you have `rep |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartauto-deploy-app is pinned at v2.100.2 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