Skip to content
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

[bitnami/apisix] dataPlane add hostPort #28900

Closed
wants to merge 2 commits into from
Closed
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
8 changes: 6 additions & 2 deletions bitnami/apisix/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## 3.3.9 (2024-07-25)
## 3.3.10 (2024-08-19)

* [bitnami/apisix] Release 3.3.9 ([#28396](https://github.com/bitnami/charts/pull/28396))
* [bitnami/apisix] dataPlane add hostPort ([#28900](https://github.com/bitnami/charts/pull/28900))

## <small>3.3.9 (2024-07-25)</small>

* [bitnami/apisix] Release 3.3.9 (#28396) ([399e694](https://github.com/bitnami/charts/commit/399e69482bcb220bdd04fc18212de4ceafc83e46)), closes [#28396](https://github.com/bitnami/charts/issues/28396)

## <small>3.3.8 (2024-07-24)</small>

Expand Down
2 changes: 1 addition & 1 deletion bitnami/apisix/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ sources:
- https://github.com/bitnami/charts/tree/main/bitnami/apisix
- https://github.com/bitnami/charts/tree/main/bitnami/apisix-dashboard
- https://github.com/bitnami/charts/tree/main/bitnami/apisix-ingress-controller
version: 3.3.9
version: 3.3.10
3 changes: 3 additions & 0 deletions bitnami/apisix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ As an alternative, use one of the preset configurations for pod affinity, pod an
| `dataPlane.containerPorts.https` | APISIX HTTPS container port | `9443` |
| `dataPlane.containerPorts.control` | APISIX control container port | `9090` |
| `dataPlane.containerPorts.metrics` | APISIX metrics container port | `9099` |
| `dataPlane.hostPort.enabled` | Enable hostPort | `false` |
| `dataPlane.hostPort.ports.http` | hostPort HTTP port | `80` |
| `dataPlane.hostPort.ports.https` | hostPort HTTPS port | `443` |
| `dataPlane.livenessProbe.enabled` | Enable livenessProbe on APISIX containers | `true` |
| `dataPlane.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `5` |
| `dataPlane.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `10` |
Expand Down
6 changes: 6 additions & 0 deletions bitnami/apisix/templates/data-plane/dep-ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,14 @@ spec:
ports:
- name: http
containerPort: {{ .Values.dataPlane.containerPorts.http }}
{{- if $.Values.dataPlane.hostPort.enabled }}
hostPort: {{ index $.Values.dataPlane.hostPort.ports.http }}
{{- end }}
- name: https
containerPort: {{ .Values.dataPlane.containerPorts.https }}
{{- if $.Values.dataPlane.hostPort.enabled }}
hostPort: {{ index $.Values.dataPlane.hostPort.ports.https }}
{{- end }}
- name: http-control
containerPort: {{ .Values.dataPlane.containerPorts.control }}
{{- if .Values.dataPlane.metrics.enabled }}
Expand Down
25 changes: 25 additions & 0 deletions bitnami/apisix/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,31 @@
}
}
},
"hostPort": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Enable hostPort",
"default": false
},
"ports": {
"type": "object",
"properties": {
"http": {
"type": "number",
"description": "hostPort HTTP port",
"default": 80
},
"https": {
"type": "number",
"description": "hostPort HTTPS port",
"default": 443
}
}
}
}
},
"livenessProbe": {
"type": "object",
"properties": {
Expand Down
9 changes: 9 additions & 0 deletions bitnami/apisix/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@ dataPlane:
https: 9443
control: 9090
metrics: 9099
## @param dataPlane.hostPort.enabled Enable hostPort
## @param dataPlane.hostPort.ports.http hostPort HTTP port
## @param dataPlane.hostPort.ports.https hostPort HTTPS port
##
hostPort:
enabled: false
ports:
http: 80
https: 443
## Configure extra options for APISIX containers' liveness and readiness probes
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
## @param dataPlane.livenessProbe.enabled Enable livenessProbe on APISIX containers
Expand Down
Loading