Skip to content

Initial helm chart for bbr #546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2025
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
23 changes: 23 additions & 0 deletions config/charts/body-based-routing/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
9 changes: 9 additions & 0 deletions config/charts/body-based-routing/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v2
name: body-based-routing
description: A Helm chart for the body-based routing extension

type: application

version: 0.1.0

appVersion: "0.2.0"
42 changes: 42 additions & 0 deletions config/charts/body-based-routing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Body-based routing

A chart to the body-based routing deployment and service.


## Install

To install a body-based router named `body-based-router`, you can run the following command:

```txt
$ helm install body-based-router ./config/charts/body-based-routing
```

## Uninstall

Run the following command to uninstall the chart:

```txt
$ helm uninstall body-based-router
```

## Configuration

The following table list the configurable parameters of the chart.

| **Parameter Name** | **Description** |
|---------------------------------------------|----------------------------------------------------------------------------------------------------|
| `bbr.name` | Name for the deployment and service. |
| `bbr.replicas` | Number of replicas for the deployment. Defaults to `1`. |
| `bbr.image.name` | Name of the container image used. |
| `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`. |

## Notes

This chart will only deploy the body-based router deployment and service.
Note that this should only be deployed once per Gateway.

Additional configuration is needed to configure a proxy extension that calls
out to the service in the request path. For example, vwith Envoy Gateway, this
would require configuring EnvoyExtensionPolicy.
1 change: 1 addition & 0 deletions config/charts/body-based-routing/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Body-based routing extension deployed.
42 changes: 42 additions & 0 deletions config/charts/body-based-routing/templates/bbr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.bbr.name }}
namespace: {{ .Release.Namespace }}
spec:
replicas: {{ .Values.bbr.replicas | default 1 }}
selector:
matchLabels:
app: {{ .Values.bbr.name }}
template:
metadata:
labels:
app: {{ .Values.bbr.name }}
spec:
containers:
- name: bbr
image: {{ .Values.bbr.image.hub }}/{{ .Values.bbr.image.name }}:{{ .Values.bbr.image.tag }}
imagePullPolicy: {{ .Values.bbr.image.pullPolicy | default "Always" }}
args:
- "-streaming"
- "v"
- "3"
ports:
- containerPort: 9004
# health check
- containerPort: 9005
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.bbr.name }}
namespace: {{ .Release.Namespace }}
spec:
selector:
app: {{ .Values.bbr.name }}
ports:
- protocol: TCP
port: 9004
targetPort: 9004
appProtocol: HTTP2
type: ClusterIP
9 changes: 9 additions & 0 deletions config/charts/body-based-routing/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
bbr:
name: body-based-router
replicas: 1
image:
name: bbr
hub: us-central1-docker.pkg.dev/k8s-staging-images/gateway-api-inference-extension
tag: main
pullPolicy: Always
extProcPort: 9002