Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions config/charts/body-based-routing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,27 @@ $ helm install body-based-router oci://us-central1-docker.pkg.dev/k8s-staging-im
--set provider.name=[gke|istio]
```

### Install with Custom Cmd-line Flags

To set cmd-line flags, you can use the `--set` option to set each flag, e.g.,:

```txt
$ helm install body-based-router ./config/charts/body-based-routing \
--set provider.name=[gke|istio] \
--set inferenceGateway.name=inference-gateway
--set bbr.flags.<FLAG_NAME>=<FLAG_VALUE>
```

Alternatively, you can define flags in the `values.yaml` file:

```yaml
bbr:
flags:
FLAG_NAME: <FLAG_VALUE>
v: 3 ## Log verbosity
...
```

## Uninstall

Run the following command to uninstall the chart:
Expand All @@ -46,6 +67,7 @@ The following table list the configurable parameters of the chart.
| `bbr.image.hub` | Registry URL where the image is hosted. |
| `bbr.image.tag` | Image tag. |
| `bbr.image.pullPolicy` | Image pull policy for the container. Possible values: `Always`, `IfNotPresent`, or `Never`. Defaults to `Always`. |
| `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. |
| `provider.name` | Name of the Inference Gateway implementation being used. Possible values: `istio`, `gke`. Defaults to `none`. |
| `inferenceGateway.name` | The name of the Gateway. Defaults to `inference-gateway`. |

Expand Down
7 changes: 5 additions & 2 deletions config/charts/body-based-routing/templates/bbr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ spec:
imagePullPolicy: {{ .Values.bbr.image.pullPolicy | default "Always" }}
args:
- "--streaming"
- "--v"
- "3"
# Pass additional flags via the bbr.flags field in values.yaml.
{{- range $key, $value := .Values.bbr.flags }}
- --{{ $key }}
- "{{ $value }}"
{{- end }}
ports:
- containerPort: {{ .Values.bbr.port }}
# health check
Expand Down
4 changes: 4 additions & 0 deletions config/charts/body-based-routing/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ bbr:
port: 9004
healthCheckPort: 9005

flags:
# Log verbosity
v: 3

provider:
name: none

Expand Down