diff --git a/charts/gateway/Chart.yaml b/charts/gateway/Chart.yaml index 093e26a..5b1f519 100644 --- a/charts/gateway/Chart.yaml +++ b/charts/gateway/Chart.yaml @@ -14,7 +14,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.9 +version: 0.1.10 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/gateway/README.md b/charts/gateway/README.md index 8856865..157567c 100644 --- a/charts/gateway/README.md +++ b/charts/gateway/README.md @@ -82,7 +82,6 @@ The command removes all the Kubernetes components associated with the chart and | apisix.http.luaSharedDict.plugin-limit-count | string | `"10m"` | | | apisix.http.luaSharedDict.plugin-limit-count-redis-cluster-slot-lock | string | `"1m"` | | | apisix.http.luaSharedDict.plugin-limit-req | string | `"10m"` | | -| apisix.http.luaSharedDict.prometheus-metrics | string | `"10m"` | | | apisix.http.luaSharedDict.saml_sessions | string | `"10m"` | | | apisix.http.luaSharedDict.tars | string | `"1m"` | | | apisix.http.luaSharedDict.tracing_buffer | string | `"10m"` | | @@ -100,6 +99,7 @@ The command removes all the Kubernetes components associated with the chart and | apisix.luaModuleHook.configMapRef.name | string | `""` | Name of the ConfigMap where the lua module codes store | | 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" | | apisix.luaModuleHook.luaPath | string | `""` | extend lua_package_path to load third party code | +| apisix.meta.luaSharedDict.prometheus-metrics | string | `"15m"` | | | apisix.nodeSelector | object | `{}` | Node labels for API7 Gateway pod assignment | | apisix.podAnnotations | object | `{}` | Annotations to add to each pod | | apisix.podDisruptionBudget | object | `{"enabled":false,"maxUnavailable":1,"minAvailable":"90%"}` | See https://kubernetes.io/docs/tasks/run-application/configure-pdb/ for more details | diff --git a/charts/gateway/templates/configmap.yaml b/charts/gateway/templates/configmap.yaml index 6bfeb9a..932d935 100644 --- a/charts/gateway/templates/configmap.yaml +++ b/charts/gateway/templates/configmap.yaml @@ -136,6 +136,13 @@ data: - {{ $env }} {{- end }} {{- end }} + + {{- if .Values.apisix.meta.luaSharedDict }} + meta: + lua_shared_dict: + {{- toYaml .Values.apisix.meta.luaSharedDict | nindent 10 }} + {{- end }} + stream: {{- if .Values.apisix.stream.luaSharedDict }} lua_shared_dict: diff --git a/charts/gateway/values.yaml b/charts/gateway/values.yaml index 1848429..62895a8 100644 --- a/charts/gateway/values.yaml +++ b/charts/gateway/values.yaml @@ -30,6 +30,10 @@ apisix: # -- Use Pod metadata.uid as the APISIX id. setIDFromPodUID: false + meta: + luaSharedDict: + prometheus-metrics: 15m + stream: luaSharedDict: etcd-cluster-health-check-stream: 10m @@ -44,7 +48,6 @@ apisix: internal-status: 10m plugin-limit-req: 10m plugin-limit-count: 10m - prometheus-metrics: 10m plugin-limit-conn: 10m plugin-graphql-limit-count: 10m plugin-graphql-limit-count-reset-header: 10m