Skip to content

Commit 4ba2fa1

Browse files
authored
Helm README (#18)
1 parent a385b76 commit 4ba2fa1

File tree

3 files changed

+89
-2
lines changed

3 files changed

+89
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,4 @@ You can interact with the cluster either of these ways:
180180
- `kubectl --kubeconfig ./kind/kubeconfig [command]`
181181
- `k9s --kubeconfig ./kind/kubeconfig --write`
182182

183-
Congratulations! You are now running the Buildkit Operator locally.
183+
Congratulations! You are now running buildkit-operator locally.

charts/buildkit-operator/README.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# buildkit-operator Helm Chart
2+
3+
[![GitHub Package Registry](https://img.shields.io/badge/ghcr.io-charts-blue?style=flat-square)](https://github.com/seatgeek/buildkit-operator/pkgs/container/charts%2Fbuildkit-operator)
4+
[![LICENSE](https://img.shields.io/github/license/seatgeek/buildkit-operator?style=flat-square)](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).

charts/buildkit-operator/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
# This is a YAML-formatted file.
33
# Declare variables to be passed into your templates.
44

5+
# Number of operator replicas to run (for high availability)
56
replicaCount: 2
67

8+
# Container image for the operator
79
image:
810
repository: ghcr.io/seatgeek/buildkit-operator
9-
pullPolicy: IfNotPresent
1011
# Overrides the image tag whose default is the chart appVersion.
1112
tag: ""
1213
# Digest support for immutable deployments (takes precedence over tag)
1314
# Example: sha256:abcd1234...
1415
digest: ""
16+
pullPolicy: IfNotPresent
1517

1618
imagePullSecrets: []
1719
nameOverride: ""

0 commit comments

Comments
 (0)