diff --git a/charts/gateway/Chart.yaml b/charts/gateway/Chart.yaml index 54a0c1d..1eb365d 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.28 +version: 0.2.29 # 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 935ca81..abcc1aa 100644 --- a/charts/gateway/README.md +++ b/charts/gateway/README.md @@ -53,7 +53,7 @@ The command removes all the Kubernetes components associated with the chart and | api7ee.disable_upstream_healthcheck | bool | `false` | A global switch for healthcheck. Defaults to false. When set to true, it overrides all upstream healthcheck configurations and globally disabling healthchecks. | | api7ee.healthcheck_report_interval | int | `120` | healthcheck data report interval in seconds | | api7ee.status_endpoint.enabled | bool | `false` | When enabled, APISIX will provide `/status` and `/status/ready` endpoints, /status endpoint will return 200 status code if APISIX has successfully started and running correctly, /status/ready endpoint will return 503 status code if none of the configured etcd (dp_manager) are available. | -| api7ee.status_endpoint.ip | string | `"127.0.0.1"` | The IP address and port on which the status endpoint will listen. | +| api7ee.status_endpoint.ip | string | `"0.0.0.0"` | The IP address and port on which the status endpoint will listen. | | api7ee.status_endpoint.port | int | `7085` | The port on which the status endpoint will listen. | | api7ee.telemetry.enable | bool | `true` | enable telemetry data report to the control plane | | api7ee.telemetry.interval | int | `15` | interval in seconds to send telemetry data to the control plane | diff --git a/charts/gateway/templates/_pod.tpl b/charts/gateway/templates/_pod.tpl index 6d0627c..833d4a9 100644 --- a/charts/gateway/templates/_pod.tpl +++ b/charts/gateway/templates/_pod.tpl @@ -95,6 +95,11 @@ spec: containerPort: {{ .Values.serviceMonitor.containerPort }} protocol: TCP {{- end }} + {{- if .Values.api7ee.status_endpoint.enabled }} + - name: status + containerPort: {{ .Values.api7ee.status_endpoint.port }} + protocol: TCP + {{- end }} {{- if and .Values.gateway.stream.enabled (or (gt (len .Values.gateway.stream.tcp) 0) (gt (len .Values.gateway.stream.udp) 0)) }} {{- with .Values.gateway.stream }} {{- if (gt (len .tcp) 0) }} diff --git a/charts/gateway/templates/service-gateway.yaml b/charts/gateway/templates/service-gateway.yaml index 22e981c..e011b4b 100644 --- a/charts/gateway/templates/service-gateway.yaml +++ b/charts/gateway/templates/service-gateway.yaml @@ -72,6 +72,12 @@ spec: targetPort: {{ .Values.serviceMonitor.containerPort }} protocol: TCP {{- end }} + {{- if .Values.api7ee.status_endpoint.enabled }} + - name: status + port: {{ .Values.api7ee.status_endpoint.port }} + targetPort: status + protocol: TCP + {{- end }} {{- if and .Values.gateway.stream.enabled (or (gt (len .Values.gateway.stream.tcp) 0) (gt (len .Values.gateway.stream.udp) 0)) }} {{- with .Values.gateway.stream }} {{- if (gt (len .tcp) 0) }} diff --git a/charts/gateway/values.yaml b/charts/gateway/values.yaml index 64cc572..10921a6 100644 --- a/charts/gateway/values.yaml +++ b/charts/gateway/values.yaml @@ -21,7 +21,7 @@ api7ee: # -- When enabled, APISIX will provide `/status` and `/status/ready` endpoints, /status endpoint will return 200 status code if APISIX has successfully started and running correctly, /status/ready endpoint will return 503 status code if none of the configured etcd (dp_manager) are available. enabled: false # -- The IP address and port on which the status endpoint will listen. - ip: 127.0.0.1 + ip: 0.0.0.0 # -- The port on which the status endpoint will listen. port: 7085