kirby3

by robjuz

Helm chartv1.0.0

A Helm chart for Kubernetes

About this chart

GitLab's Auto-deploy Helm Chart

Requirements

  • Helm 2.9.0 and above is required in order support "helm.sh/hook-delete-policy": before-hook-creation for migrations

Configuration

ParameterDescriptionDefault
replicaCount1
strategyTypePod deployment strategynil
serviceAccountNamePod service account name overridenil
image.repositorygitlab.example.com/group/project
image.tagstable
image.pullPolicyAlways
image.secrets[name: gitlab-registry]
extraLabelsAllow labelling resources with custom key/value pairs{}
podAnnotationsPod annotations{}
application.trackstable
application.tierweb
application.migrateCommandIf 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.initializeCommandIf 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 resource will be skipped.nil
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.targetCPUUtilizationPercentagePercentage threshold when HPA begins scaling out pods80
gitlab.appGitLab project slug.nil
gitlab.envGitLab environment slug.nil
gitlab.envNameGitLab environment name.nil
gitlab.envURLGitLab environment URL.nil
service.enabledtrue
service.annotationsService annotations{}
service.nameweb
service.typeClusterIP
service.urlhttp://my.host.com/
service.additionalHostsIf present, this list will add additional hostnames to the server configuration.nil
service.commonNameIf 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.externalPort5000
service.internalPort5000
ingress.enabledIf true, enables ingresstrue
ingress.pathDefault path for the ingress/
ingress.tls.enabledIf true, enables SSLtrue
ingress.tls.acmeControls kubernetes.io/tls-acme annotationtrue
ingress.tls.secretNameName of the secret used to terminate SSL traffic""
ingress.tls.useDefaultSecretIf 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.enabledEnable custom configuration for modsecurity, defaulting to the Core Rule Setfalse
ingress.modSecurity.secRuleEngineConfiguration for ModSecurity's rule engineDetectionOnly
ingress.modSecurity.secRulesConfiguration for custom ModSecurity's rulesnil
ingress.annotationsIngress annotations{kubernetes.io/ingress.class: "nginx"}
livenessProbe.pathPath to access on the HTTP server on periodic probe of container liveness./
livenessProbe.schemeScheme to access the HTTP server (HTTP or HTTPS).HTTP
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.probeTypeType of liveness probe to use.httpGet
livenessProbe.commandCommands for use with probe type 'exec'.{}
readinessProbe.pathPath to access on the HTTP server on periodic probe of container readiness./
readinessProbe.schemeScheme to access the HTTP server (HTTP or HTTPS).HTTP
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.probeTypeType of readiness probe to use.httpGet
readinessProbe.commandCommands for use with probe type 'exec'.{}
postgresql.managedIf true, this will provision a managed Postgres instance via crossplane.false
postgresql.managedClassSelectorThis 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.enabledfalse
podDisruptionBudget.maxUnavailable1
podDisruptionBudget.minAvailableIf present, this variable will configure minAvailable in the PodDisruptionBudget. :warning: if you have replicaCount: 1 and podDisruptionBudget.minAvailable: 1 kubectl drain will be blocked.nil
prometheus.metricsAnnotates the service for prometheus auto-discovery. Also denies access to the /metrics endpoint from external addresses with Ingress.false
networkPolicy.enabledEnable container network policyfalse
networkPolicy.specNetwork policy definition{ podSelector: { matchLabels: {} }, ingress: [{ from: [{ podSelector: { matchLabels: {} } }, { namespaceSelector: { matchLabels: { app.gitlab.com/managed_by: gitlab } } }] }] }
persistence.enabledAllow a persistent volume claim (PVC) to be mounted as a volume.false
persistence.existingClaimName of an existing PVC to use. If unspecified, a PVC is automatically created. Warning: Auto-created PVCs are deleted any time persistence.enabled is set to false. Manually managed PVCs are left alone.nil
persistence.storageClassStorage class of the PVC.default
persistence.accessModeAccess mode to use for the PVC.ReadWriteOnce
persistence.sizeSize of the PVC.8Gi
persistence.mountPathPath on which the PVC is mounted in the container./pvc-mount

Deploy kirby3 with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kirby3 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 chartkirby3 is pinned at v1.0.0 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