generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Body-based routing extension deployed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.