Skip to content

Commit 03fd935

Browse files
authored
feat: add api7ee configuration to gateway chart (#123)
Signed-off-by: Nic <[email protected]>
1 parent 5de6c8d commit 03fd935

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

charts/gateway/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type: application
1414
# This is the chart version. This version number should be incremented each time you make changes
1515
# to the chart and its templates, including the app version.
1616
# Versions are expected to follow Semantic Versioning (https://semver.org/)
17-
version: 0.1.6
17+
version: 0.1.7
1818

1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application. Versions are not expected to

charts/gateway/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ The command removes all the Kubernetes components associated with the chart and
5050
| admin.port | int | `9180` | which port to use for API7 Gateway admin API |
5151
| admin.servicePort | int | `9180` | Service port to use for API7 Gateway admin API |
5252
| admin.type | string | `"ClusterIP"` | admin service type |
53+
| api7ee.healthcheck_report_interval | int | `120` | healthcheck data report interval in seconds |
54+
| api7ee.telemetry.enable | bool | `true` | enable telemetry data report to the control plane |
55+
| api7ee.telemetry.interval | int | `15` | interval in seconds to send telemetry data to the control plane |
56+
| api7ee.telemetry.max_metrics_size | int | `33554432` | max size in bytes(default 32M) of the metrics data sent to the control plane, if the size exceeds, the data will be truncated |
5357
| apisix.affinity | object | `{}` | Set affinity for API7 Gateway deploy |
5458
| apisix.customLuaSharedDicts | list | `[]` | Add custom [lua_shared_dict](https://github.com/openresty/lua-nginx-module#toc88) settings, click [here](https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix/values.yaml#L27-L30) to learn the format of a shared dict |
5559
| apisix.customizedConfig | object | `{}` | If apisix.enableCustomizedConfig is true, full customized config.yaml. Please note that other settings about APISIX config will be ignored |

charts/gateway/templates/configmap.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ data:
1212
{{- include "apisix.tplvalues.render" (dict "value" $value "context" $) | nindent 6 }}
1313
{{- end }}
1414
{{- else }}
15+
{{- if .Values.api7ee }}
16+
api7ee:
17+
{{- toYaml .Values.api7ee | nindent 6 }}
18+
{{- end }}
1519
apisix: # universal configurations
1620
{{- if not (eq .Values.deployment.role "control_plane") }}
1721
node_listen: # APISIX listening port

charts/gateway/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ global:
66
# -- Global Docker registry secret names as an array
77
imagePullSecrets: []
88

9+
api7ee:
10+
telemetry:
11+
# -- enable telemetry data report to the control plane
12+
enable: true
13+
# -- interval in seconds to send telemetry data to the control plane
14+
interval: 15
15+
# -- max size in bytes(default 32M) of the metrics data sent to the control plane, if the size exceeds, the data will be truncated
16+
max_metrics_size: 33554432
17+
# -- healthcheck data report interval in seconds
18+
healthcheck_report_interval: 120
19+
920
apisix:
1021
# -- Enable or disable API7 Gateway itself
1122
enabled: true

0 commit comments

Comments
 (0)