diff --git a/charts/gateway/Chart.yaml b/charts/gateway/Chart.yaml index 542a559..8ea7281 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.2.31 +version: 0.2.32 # 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 462e400..34d2aeb 100644 --- a/charts/gateway/README.md +++ b/charts/gateway/README.md @@ -137,6 +137,9 @@ The command removes all the Kubernetes components associated with the chart and | autoscaling.targetMemoryUtilizationPercentage | int | `80` | | | autoscaling.version | string | `"v2"` | HPA version, the value is "v2" or "v2beta1", default "v2" | | configurationSnippet | object | `{"httpAdmin":"","httpEnd":"","httpSrv":"","httpSrvLocation":"","httpStart":"","main":"","stream":""}` | Custom configuration snippet. | +| control.enabled | bool | `true` | Enable Control API | +| control.ip | string | `"127.0.0.1"` | which ip to listen on for Control API | +| control.port | int | `9090` | which port to use for Control API | | deployment.certs | object | `{"cert":"","cert_key":"","certsSecret":"","mTLSCACert":"","mTLSCACertSecret":""}` | certs used for certificates in decoupled mode | | deployment.certs.cert | string | `""` | cert name in certsSecret | | deployment.certs.cert_key | string | `""` | cert key in certsSecret | diff --git a/charts/gateway/templates/configmap.yaml b/charts/gateway/templates/configmap.yaml index bf5dc99..1791ab2 100644 --- a/charts/gateway/templates/configmap.yaml +++ b/charts/gateway/templates/configmap.yaml @@ -136,6 +136,13 @@ data: port: {{ .Values.api7ee.status_endpoint.port }} {{- end }} + enable_control: {{ .Values.control.enabled }} + {{- if .Values.control.enabled }} + control: + ip: {{ default "127.0.0.1" .Values.control.ip }} + port: {{ default 9090 .Values.control.port }} + {{- end }} + disable_upstream_healthcheck: {{ .Values.api7ee.disable_upstream_healthcheck }} # fine tune the parameters of LRU cache for some features like secret diff --git a/charts/gateway/values.yaml b/charts/gateway/values.yaml index 52f900b..ba0eb60 100644 --- a/charts/gateway/values.yaml +++ b/charts/gateway/values.yaml @@ -583,3 +583,11 @@ soapProxy: tag: 1.0.0 # -- SOAP proxy image pull policy pullPolicy: IfNotPresent + +control: + # -- Enable Control API + enabled: true + # -- which ip to listen on for Control API + ip: "127.0.0.1" + # -- which port to use for Control API + port: 9090