Skip to content

Commit 189f0dc

Browse files
authored
Helm chart for bbr (#546)
1 parent 76cdc7d commit 189f0dc

File tree

6 files changed

+126
-0
lines changed

6 files changed

+126
-0
lines changed

Diff for: config/charts/body-based-routing/.helmignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

Diff for: config/charts/body-based-routing/Chart.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: v2
2+
name: body-based-routing
3+
description: A Helm chart for the body-based routing extension
4+
5+
type: application
6+
7+
version: 0.1.0
8+
9+
appVersion: "0.2.0"

Diff for: config/charts/body-based-routing/README.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Body-based routing
2+
3+
A chart to the body-based routing deployment and service.
4+
5+
6+
## Install
7+
8+
To install a body-based router named `body-based-router`, you can run the following command:
9+
10+
```txt
11+
$ helm install body-based-router ./config/charts/body-based-routing
12+
```
13+
14+
## Uninstall
15+
16+
Run the following command to uninstall the chart:
17+
18+
```txt
19+
$ helm uninstall body-based-router
20+
```
21+
22+
## Configuration
23+
24+
The following table list the configurable parameters of the chart.
25+
26+
| **Parameter Name** | **Description** |
27+
|---------------------------------------------|----------------------------------------------------------------------------------------------------|
28+
| `bbr.name` | Name for the deployment and service. |
29+
| `bbr.replicas` | Number of replicas for the deployment. Defaults to `1`. |
30+
| `bbr.image.name` | Name of the container image used. |
31+
| `bbr.image.hub` | Registry URL where the image is hosted. |
32+
| `bbr.image.tag` | Image tag. |
33+
| `bbr.image.pullPolicy` | Image pull policy for the container. Possible values: `Always`, `IfNotPresent`, or `Never`. Defaults to `Always`. |
34+
35+
## Notes
36+
37+
This chart will only deploy the body-based router deployment and service.
38+
Note that this should only be deployed once per Gateway.
39+
40+
Additional configuration is needed to configure a proxy extension that calls
41+
out to the service in the request path. For example, vwith Envoy Gateway, this
42+
would require configuring EnvoyExtensionPolicy.

Diff for: config/charts/body-based-routing/templates/NOTES.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Body-based routing extension deployed.

Diff for: config/charts/body-based-routing/templates/bbr.yaml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: {{ .Values.bbr.name }}
5+
namespace: {{ .Release.Namespace }}
6+
spec:
7+
replicas: {{ .Values.bbr.replicas | default 1 }}
8+
selector:
9+
matchLabels:
10+
app: {{ .Values.bbr.name }}
11+
template:
12+
metadata:
13+
labels:
14+
app: {{ .Values.bbr.name }}
15+
spec:
16+
containers:
17+
- name: bbr
18+
image: {{ .Values.bbr.image.hub }}/{{ .Values.bbr.image.name }}:{{ .Values.bbr.image.tag }}
19+
imagePullPolicy: {{ .Values.bbr.image.pullPolicy | default "Always" }}
20+
args:
21+
- "-streaming"
22+
- "v"
23+
- "3"
24+
ports:
25+
- containerPort: 9004
26+
# health check
27+
- containerPort: 9005
28+
---
29+
apiVersion: v1
30+
kind: Service
31+
metadata:
32+
name: {{ .Values.bbr.name }}
33+
namespace: {{ .Release.Namespace }}
34+
spec:
35+
selector:
36+
app: {{ .Values.bbr.name }}
37+
ports:
38+
- protocol: TCP
39+
port: 9004
40+
targetPort: 9004
41+
appProtocol: HTTP2
42+
type: ClusterIP

Diff for: config/charts/body-based-routing/values.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
bbr:
2+
name: body-based-router
3+
replicas: 1
4+
image:
5+
name: bbr
6+
hub: us-central1-docker.pkg.dev/k8s-staging-images/gateway-api-inference-extension
7+
tag: main
8+
pullPolicy: Always
9+
extProcPort: 9002

0 commit comments

Comments
 (0)