Skip to content

Commit

Permalink
[bitnami/apisix] dataPlane add hostPort config
Browse files Browse the repository at this point in the history
Signed-off-by: chenliang <[email protected]>
  • Loading branch information
chenliang committed Aug 19, 2024
1 parent 9b955d2 commit a5c8abf
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
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
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.http }}
{{- end }}
- name: https
containerPort: {{ .Values.dataPlane.containerPorts.https }}
{{- if $.Values.dataPlane.hostPort.enabled }}
hostPort: {{ index $.Values.dataPlane.hostPort.https }}
{{- end }}
- name: http-control
containerPort: {{ .Values.dataPlane.containerPorts.control }}
{{- if .Values.dataPlane.metrics.enabled }}
Expand Down
20 changes: 20 additions & 0 deletions bitnami/apisix/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,26 @@
}
}
},
"hostPort": {
"type": "object",
"properties": {
"enable": {
"type": "boolean",
"description": "Enable hostPort",
"default": false
},
"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.http hostPort HTTP port
## @param dataPlane.hostPort.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

0 comments on commit a5c8abf

Please sign in to comment.