Skip to content

Commit 06552f7

Browse files
authored
chore: provide meta.lua_shared_dict configuration for gateway (#144)
Signed-off-by: Nic <[email protected]>
1 parent 6e57953 commit 06552f7

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
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.9
17+
version: 0.1.10
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ The command removes all the Kubernetes components associated with the chart and
8282
| apisix.http.luaSharedDict.plugin-limit-count | string | `"10m"` | |
8383
| apisix.http.luaSharedDict.plugin-limit-count-redis-cluster-slot-lock | string | `"1m"` | |
8484
| apisix.http.luaSharedDict.plugin-limit-req | string | `"10m"` | |
85-
| apisix.http.luaSharedDict.prometheus-metrics | string | `"10m"` | |
8685
| apisix.http.luaSharedDict.saml_sessions | string | `"10m"` | |
8786
| apisix.http.luaSharedDict.tars | string | `"1m"` | |
8887
| apisix.http.luaSharedDict.tracing_buffer | string | `"10m"` | |
@@ -100,6 +99,7 @@ The command removes all the Kubernetes components associated with the chart and
10099
| apisix.luaModuleHook.configMapRef.name | string | `""` | Name of the ConfigMap where the lua module codes store |
101100
| apisix.luaModuleHook.hookPoint | string | `""` | the hook module which will be used to inject third party code into APISIX use the lua require style like: "module.say_hello" |
102101
| apisix.luaModuleHook.luaPath | string | `""` | extend lua_package_path to load third party code |
102+
| apisix.meta.luaSharedDict.prometheus-metrics | string | `"15m"` | |
103103
| apisix.nodeSelector | object | `{}` | Node labels for API7 Gateway pod assignment |
104104
| apisix.podAnnotations | object | `{}` | Annotations to add to each pod |
105105
| apisix.podDisruptionBudget | object | `{"enabled":false,"maxUnavailable":1,"minAvailable":"90%"}` | See https://kubernetes.io/docs/tasks/run-application/configure-pdb/ for more details |

charts/gateway/templates/configmap.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ data:
136136
- {{ $env }}
137137
{{- end }}
138138
{{- end }}
139+
140+
{{- if .Values.apisix.meta.luaSharedDict }}
141+
meta:
142+
lua_shared_dict:
143+
{{- toYaml .Values.apisix.meta.luaSharedDict | nindent 10 }}
144+
{{- end }}
145+
139146
stream:
140147
{{- if .Values.apisix.stream.luaSharedDict }}
141148
lua_shared_dict:

charts/gateway/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ apisix:
3030
# -- Use Pod metadata.uid as the APISIX id.
3131
setIDFromPodUID: false
3232

33+
meta:
34+
luaSharedDict:
35+
prometheus-metrics: 15m
36+
3337
stream:
3438
luaSharedDict:
3539
etcd-cluster-health-check-stream: 10m
@@ -44,7 +48,6 @@ apisix:
4448
internal-status: 10m
4549
plugin-limit-req: 10m
4650
plugin-limit-count: 10m
47-
prometheus-metrics: 10m
4851
plugin-limit-conn: 10m
4952
plugin-graphql-limit-count: 10m
5053
plugin-graphql-limit-count-reset-header: 10m

0 commit comments

Comments
 (0)