2024-10-18 07:45:08 +00:00
|
|
|
|
2024-10-18 08:26:05 +00:00
|
|
|
# LIB
|
2024-10-18 07:45:08 +00:00
|
|
|
|
2024-10-18 08:26:05 +00:00
|
|
|
|
|
|
|
to use, add this to your Charts.yaml
|
|
|
|
```
|
|
|
|
dependencies:
|
|
|
|
- name: lib
|
2024-10-18 13:39:20 +00:00
|
|
|
repository: oci://repo.rre.nu/helm
|
2024-10-18 14:42:00 +00:00
|
|
|
version: <chart version>
|
2024-10-18 08:26:05 +00:00
|
|
|
```
|
2024-10-18 07:45:08 +00:00
|
|
|
Common functions for my helm charts at home
|
|
|
|
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
The following table lists the configurable parameters of the Lib chart and their default values.
|
|
|
|
|
|
|
|
| Parameter | Description | Default |
|
|
|
|
| ------------------------ | ----------------------- | -------------- |
|
|
|
|
| `namespace` | namespace to install to | `"default"` |
|
|
|
|
| `controller.enabled` | should the main workload be included or not | `true` |
|
|
|
|
| `controller.type` | valid options are deployment, statefulset, job | `"deployment"` |
|
|
|
|
| `controller.replicas` | number of replicas | `1` |
|
2024-10-22 12:29:12 +00:00
|
|
|
| `controller.lifecycle` | Define postStart and preStop handlers | `{}` |
|
|
|
|
| `controller.command` | override the containers entrypoint | `null` |
|
|
|
|
| `controller.args` | add argument to the override command | `[]` |
|
2024-10-18 07:45:08 +00:00
|
|
|
| `image.repository` | container image name | `null` |
|
2024-10-18 09:04:28 +00:00
|
|
|
| `image.pullPolicy` | kubernetes pull policy | `"IfNotPresent"` |
|
2024-10-18 07:45:08 +00:00
|
|
|
| `image.tag` | Overrides the image tag whose default is the chart appVersion. | `""` |
|
|
|
|
| `fullnameOverride` | override the name of the helm release | `""` |
|
|
|
|
| `service.main.enabled` | | `false` |
|
|
|
|
| `service.main.type` | | `"ClusterIP"` |
|
|
|
|
| `service.main.annotations` | | `{}` |
|
|
|
|
| `service.main.labels` | | `{}` |
|
|
|
|
| `service.main.ports` | | `null` |
|
|
|
|
| `ingress.enabled` | | `false` |
|
|
|
|
| `ingress.service` | what service should the ingress target | `"main"` |
|
|
|
|
| `ingress.servicePort` | | `80` |
|
|
|
|
| `ingress.className` | | `""` |
|
|
|
|
| `ingress.annotations` | | `{}` |
|
|
|
|
| `ingress.hosts` | | `[{"host": "chart-example.local", "paths": [{"path": "/", "pathType": "ImplementationSpecific"}]}]` |
|
|
|
|
| `ingress.tls` | | `[]` |
|
|
|
|
| `resources` | | `{}` |
|
|
|
|
| `autoscaling.enabled` | | `false` |
|
|
|
|
| `autoscaling.minReplicas` | | `1` |
|
|
|
|
| `autoscaling.maxReplicas` | | `5` |
|
|
|
|
| `autoscaling.targetCPUUtilizationPercentage` | | `80` |
|
|
|
|
| `secrets` | Secrets that needs to be created | `{}` |
|
|
|
|
| `configs` | ConfigMaps that needs to be created | `{}` |
|
2024-10-22 12:29:12 +00:00
|
|
|
| `envFrom` | mount environment variables from secrets or configMaps | `[]` |
|
|
|
|
| `env.TZ` | | `"Europe/Stockholm"` |
|
2024-10-18 07:45:08 +00:00
|
|
|
| `volumes` | | `[]` |
|
|
|
|
| `volumeMounts` | | `[]` |
|
|
|
|
| `volumeClaimTemplates` | used for statefulset https://kubernetes.io/docs/concepts/workloads/controllers/statefulset | `[]` |
|
|
|
|
| `serviceAccount.create` | | `true` |
|
|
|
|
| `serviceAccount.automount` | | `true` |
|
|
|
|
| `serviceAccount.annotations` | | `{}` |
|
|
|
|
| `serviceAccount.name` | | `""` |
|
|
|
|
| `livenessProbe` | | `{}` |
|
|
|
|
| `readinessProbe` | | `{}` |
|
|
|
|
| `nodeSelector` | | `{}` |
|
|
|
|
| `tolerations` | | `[]` |
|
|
|
|
| `affinity` | | `{}` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|