common-helm-lib/README.md
Jonas Forsberg 5942d11624
All checks were successful
Lint and Test Charts / lint-test (push) Successful in 8s
set the default imagePullPolicy to IfNotPresent
2024-10-18 11:04:28 +02:00

65 lines
2.4 KiB
Markdown

# LIB
to use, add this to your Charts.yaml
```
dependencies:
- name: lib
repository: "repo.rre.nu/helm"
version: 1.0.0
```
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` |
| `image.repository` | container image name | `null` |
| `image.pullPolicy` | kubernetes pull policy | `"IfNotPresent"` |
| `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 | `{}` |
| `env` | environment variables the controller should have | `{}` |
| `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` | | `{}` |