|
| 1 | +# Ofen Helm Chart |
| 2 | + |
| 3 | +## How to use Ofen Helm repository |
| 4 | + |
| 5 | +You need to add this repository to your Helm repositories: |
| 6 | + |
| 7 | +```console |
| 8 | +helm repo add ofen https://cybozu-go.github.io/ofen/ |
| 9 | +helm repo update |
| 10 | +``` |
| 11 | + |
| 12 | +## Quick start |
| 13 | + |
| 14 | +### Installing the Chart |
| 15 | + |
| 16 | +To install the chart with the release name `ofen` using a dedicated namespace(recommended): |
| 17 | + |
| 18 | +```console |
| 19 | +$ helm install --create-namespace --namespace ofen-system ofen ofen/ofen |
| 20 | +``` |
| 21 | + |
| 22 | +Specify parameters using `--set key=value[,key=value]` argument to `helm install`. |
| 23 | + |
| 24 | +Alternatively a YAML file that specifies the values for the parameters can be provided like this: |
| 25 | + |
| 26 | +```console |
| 27 | +$ helm install --create-namespace --namespace ofen-system ofen -f values.yaml ofen/ofen |
| 28 | +``` |
| 29 | + |
| 30 | +## Values |
| 31 | + |
| 32 | +| Key | Type | Default | Description | |
| 33 | +| ---------------------------- | ------ | --------------------------------------------- | ---------------------------------------------------------------------------------- | |
| 34 | +| crds.enabled | bool | `true` | Install and update CRDs as part of the Helm chart. | |
| 35 | +| crds.keep | bool | `true` | Keep existing CRDs during uninstallation. | |
| 36 | +| controller.replicas | int | `2` | Number of replicas for the ofen-controller Deployment. | |
| 37 | +| controller.image.repository | string | `"ghcr.io/cybozu-go/ofen"` | ofen-controller image repository to use. | |
| 38 | +| controller.image.pullPolicy | string | `"IfNotPresent"` | ofen-controller image pull policy. | |
| 39 | +| controller.image.tag | string | `""` | ofen-controller image tag to use. | |
| 40 | +| controller.imagePullSecrets | list | `[]` | Secrets for pulling the ofen-controller image from a private repository. | |
| 41 | +| controller.resources | object | `{"requests":{"cpu":"100m","memory":"20Mi"}}` | Resource requests and limits for the ofen-controller Deployment. | |
| 42 | +| controller.extraArgs | list | `[]` | Additional command line arguments to pass to the ofen-controller binary. | |
| 43 | +| daemon.image.repository | string | `"ghcr.io/cybozu-go/ofend"` | ofen-daemon image repository to use. | |
| 44 | +| daemon.image.pullPolicy | string | `"IfNotPresent"` | ofen-daemon image pull policy. | |
| 45 | +| daemon.image.tag | string | `""` | ofen-daemon image tag to use. | |
| 46 | +| daemon.imagePullSecrets | list | `[]` | Secrets for pulling the ofen-daemon image from a private repository. | |
| 47 | +| daemon.resources | object | `{"requests":{"cpu":"100m","memory":"20Mi"}}` | Resource requests and limits for the ofen-daemon DaemonSet. | |
| 48 | +| daemon.extraArgs | list | `[]` | Additional command line arguments to pass to the ofen-daemon binary. | |
| 49 | +| daemon.containerdSockPath | string | `"/run/containerd/containerd.sock"` | Path to the containerd socket. | |
| 50 | +| daemon.containerdHostDirPath | string | `"/etc/containerd/certs.d"` | Path to the host directory where containerd certificate configurations are stored. | |
| 51 | +| allowRegistries | list | `[]` | Allow pulling images from some registries. | |
| 52 | + |
| 53 | +## Generate Manifests |
| 54 | + |
| 55 | +You can use the `helm template` command to render manifests. |
| 56 | + |
| 57 | +```console |
| 58 | +$ helm template --namespace ofen ofen ofen/ofen |
| 59 | +``` |
| 60 | + |
| 61 | +## CRD considerations |
| 62 | + |
| 63 | +### Installing or updating CRDs |
| 64 | + |
| 65 | +Ofen Helm Chart installs or updates CRDs by default. If you want to manage CRDs on your own, turn off the `crds.enabled` parameter. |
| 66 | + |
| 67 | +### Removing CRDs |
| 68 | + |
| 69 | +Helm does not remove the CRDs due to the [`helm.sh/resource-policy: keep` annotation](https://helm.sh/docs/howto/charts_tips_and_tricks/#tell-helm-not-to-uninstall-a-resource). |
| 70 | +When uninstalling, please remove the CRDs manually. |
0 commit comments