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.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 | Pod service account name override | 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 | {} |
| podAnnotations | Pod annotations | {} |
| 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 resource 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 |
| 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 | Percentage threshold when HPA begins scaling out pods | 80 |
| gitlab.app | GitLab project slug. | nil |
| gitlab.env | GitLab environment slug. | nil |
| gitlab.envName | GitLab environment name. | nil |
| gitlab.envURL | GitLab environment URL. | nil |
| service.enabled | true | |
| service.annotations | Service annotations | {} |
| service.name | web | |
| service.type | ClusterIP | |
| 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 | |
| ingress.enabled | If true, enables ingress | true |
| 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 | {kubernetes.io/ingress.class: "nginx"} |
| 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.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.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.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'. | {} |
| 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 replicaCount: 1 and podDisruptionBudget.minAvailable: 1 kubectl drain will be blocked. | nil |
| prometheus.metrics | Annotates the service for prometheus auto-discovery. Also denies access to the /metrics endpoint from external addresses with Ingress. | false |
| networkPolicy.enabled | Enable container network policy | false |
| networkPolicy.spec | Network policy definition | { podSelector: { matchLabels: {} }, ingress: [{ from: [{ podSelector: { matchLabels: {} } }, { namespaceSelector: { matchLabels: { app.gitlab.com/managed_by: gitlab } } }] }] } |
| persistence.enabled | Allow a persistent volume claim (PVC) to be mounted as a volume. | false |
| persistence.existingClaim | Name 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.storageClass | Storage class of the PVC. | default |
| persistence.accessMode | Access mode to use for the PVC. | ReadWriteOnce |
| persistence.size | Size of the PVC. | 8Gi |
| persistence.mountPath | Path 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkirby3 is pinned at v1.0.0 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