Skip to content

Commit 0419f7f

Browse files
authored
enhance bbr helm chart to generalize cmd-line args (#1900)
Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
1 parent c6d2afe commit 0419f7f

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

config/charts/body-based-routing/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,27 @@ $ helm install body-based-router oci://us-central1-docker.pkg.dev/k8s-staging-im
2424
--set provider.name=[gke|istio]
2525
```
2626

27+
### Install with Custom Cmd-line Flags
28+
29+
To set cmd-line flags, you can use the `--set` option to set each flag, e.g.,:
30+
31+
```txt
32+
$ helm install body-based-router ./config/charts/body-based-routing \
33+
--set provider.name=[gke|istio] \
34+
--set inferenceGateway.name=inference-gateway
35+
--set bbr.flags.<FLAG_NAME>=<FLAG_VALUE>
36+
```
37+
38+
Alternatively, you can define flags in the `values.yaml` file:
39+
40+
```yaml
41+
bbr:
42+
flags:
43+
FLAG_NAME: <FLAG_VALUE>
44+
v: 3 ## Log verbosity
45+
...
46+
```
47+
2748
## Uninstall
2849

2950
Run the following command to uninstall the chart:
@@ -46,6 +67,7 @@ The following table list the configurable parameters of the chart.
4667
| `bbr.image.hub` | Registry URL where the image is hosted. |
4768
| `bbr.image.tag` | Image tag. |
4869
| `bbr.image.pullPolicy` | Image pull policy for the container. Possible values: `Always`, `IfNotPresent`, or `Never`. Defaults to `Always`. |
70+
| `bbr.flags` | map of flags which are passed through to bbr. Refer to [runner.go](https://github.com/kubernetes-sigs/gateway-api-inference-extension/blob/main/cmd/bbr/runner/runner.go) for complete list. |
4971
| `provider.name` | Name of the Inference Gateway implementation being used. Possible values: `istio`, `gke`. Defaults to `none`. |
5072
| `inferenceGateway.name` | The name of the Gateway. Defaults to `inference-gateway`. |
5173

config/charts/body-based-routing/templates/bbr.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ spec:
1919
imagePullPolicy: {{ .Values.bbr.image.pullPolicy | default "Always" }}
2020
args:
2121
- "--streaming"
22-
- "--v"
23-
- "3"
22+
# Pass additional flags via the bbr.flags field in values.yaml.
23+
{{- range $key, $value := .Values.bbr.flags }}
24+
- --{{ $key }}
25+
- "{{ $value }}"
26+
{{- end }}
2427
ports:
2528
- containerPort: {{ .Values.bbr.port }}
2629
# health check

config/charts/body-based-routing/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ bbr:
99
port: 9004
1010
healthCheckPort: 9005
1111

12+
flags:
13+
# Log verbosity
14+
v: 3
15+
1216
provider:
1317
name: none
1418

0 commit comments

Comments
 (0)