|
| 1 | +# buildkit-operator Helm Chart |
| 2 | + |
| 3 | +[](https://github.com/seatgeek/buildkit-operator/pkgs/container/charts%2Fbuildkit-operator) |
| 4 | +[](https://github.com/seatgeek/buildkit-operator/blob/HEAD/LICENSE) |
| 5 | + |
| 6 | +A Helm chart for deploying the BuildKit Operator on Kubernetes. The BuildKit Operator manages BuildKit instances through custom resources, enabling dynamic BuildKit deployments with configurable templates and instances. |
| 7 | + |
| 8 | +## Quick Start |
| 9 | + |
| 10 | +```bash |
| 11 | +helm install buildkit-operator \ |
| 12 | + oci://ghcr.io/seatgeek/charts/buildkit-operator \ |
| 13 | + --namespace buildkit-system \ |
| 14 | + --create-namespace |
| 15 | +``` |
| 16 | + |
| 17 | +### With Configuration |
| 18 | + |
| 19 | +Create a `values.yaml` file with your customizations: |
| 20 | + |
| 21 | +```yaml |
| 22 | +# High availability setup |
| 23 | +replicaCount: 3 |
| 24 | + |
| 25 | +# Resource configuration |
| 26 | +operator: |
| 27 | + resources: |
| 28 | + requests: |
| 29 | + memory: "128Mi" |
| 30 | + cpu: "100m" |
| 31 | + limits: |
| 32 | + memory: "256Mi" |
| 33 | + cpu: "500m" |
| 34 | + |
| 35 | + nodeSelector: |
| 36 | + kubernetes.io/os: linux |
| 37 | +``` |
| 38 | +
|
| 39 | +Then install with your custom values: |
| 40 | +
|
| 41 | +```bash |
| 42 | +helm install buildkit-operator \ |
| 43 | + oci://ghcr.io/seatgeek/charts/buildkit-operator \ |
| 44 | + --namespace buildkit-system \ |
| 45 | + --create-namespace \ |
| 46 | + --values values.yaml |
| 47 | +``` |
| 48 | + |
| 49 | +## Configuration |
| 50 | + |
| 51 | +### Common Configuration Options |
| 52 | + |
| 53 | +| Parameter | Description | Default | |
| 54 | +|-------------------------------|-------------------------------------------|--------------------------------------| |
| 55 | +| `replicaCount` | Number of operator replicas for HA | `2` | |
| 56 | +| `image.repository` | Operator container image repository | `ghcr.io/seatgeek/buildkit-operator` | |
| 57 | +| `image.tag` | Operator container image tag | `""` (uses chart appVersion) | |
| 58 | +| `operator.leaderElection` | Enable leader election for HA | `true` | |
| 59 | +| `operator.resources` | Resource limits/requests for operator | See [values.yaml](./values.yaml) | |
| 60 | +| `webhook.enabled` | Enable admission webhooks | `true` | |
| 61 | +| `webhook.certManager.enabled` | Use cert-manager for webhook certificates | `true` | |
| 62 | +| `rbac.create` | Create RBAC resources | `true` | |
| 63 | +| `crds.install` | Install CRDs with chart | `true` | |
| 64 | + |
| 65 | +### Values Reference |
| 66 | + |
| 67 | +For a complete list of configurable values, see the [values.yaml](./values.yaml) file. |
| 68 | + |
| 69 | +## Chart Packages |
| 70 | + |
| 71 | +Chart packages are available at: |
| 72 | +- **OCI Registry**: `oci://ghcr.io/seatgeek/charts/buildkit-operator` |
| 73 | +- **GitHub Packages**: https://github.com/seatgeek/buildkit-operator/pkgs/container/charts%2Fbuildkit-operator |
| 74 | + |
| 75 | +## Development |
| 76 | + |
| 77 | +This chart uses templates that are kept in sync with kubebuilder-generated manifests. |
| 78 | + |
| 79 | +To validate template synchronization after making changes: |
| 80 | + |
| 81 | +```bash |
| 82 | +make validate-helm-templates |
| 83 | +``` |
| 84 | + |
| 85 | +For more information about the BuildKit Operator itself, see the [main project README](../../README.md). |
0 commit comments