From 34a2251e1322c8edb3c4fd94471272aef26aad43 Mon Sep 17 00:00:00 2001 From: Nic Date: Sun, 28 Sep 2025 15:44:51 +0800 Subject: [PATCH 1/2] chore: add soap-proxy container to gateway helm chart Signed-off-by: Nic --- charts/gateway/README.md | 4 ++++ charts/gateway/templates/_pod.tpl | 33 +++++++++++++++++++++++++++++-- charts/gateway/values.yaml | 12 +++++++++++ 3 files changed, 47 insertions(+), 2 deletions(-) diff --git a/charts/gateway/README.md b/charts/gateway/README.md index 852d609..2ea8a79 100644 --- a/charts/gateway/README.md +++ b/charts/gateway/README.md @@ -220,6 +220,10 @@ The command removes all the Kubernetes components associated with the chart and | serviceMonitor.name | string | `""` | name of the serviceMonitor, by default, it is the same as the apisix fullname | | serviceMonitor.namespace | string | `""` | namespace where the serviceMonitor is deployed, by default, it is the same as the namespace of the apisix | | serviceMonitor.path | string | `"/apisix/prometheus/metrics"` | path of the metrics endpoint | +| soapProxy.enabled | bool | `false` | Enable or disable the SOAP proxy feature, this feature is disabled by default, when use soap-proxy plugin in API7, you need to enable this feature. | +| soapProxy.image.pullPolicy | string | `"IfNotPresent"` | SOAP proxy image pull policy | +| soapProxy.image.repository | string | `"api7/soap-proxy"` | SOAP proxy image repository | +| soapProxy.image.tag | string | `"1.0.0"` | SOAP proxy image tag | | updateStrategy | object | `{}` | | | vault.enabled | bool | `false` | Enable or disable the vault integration | | vault.host | string | `""` | The host address where the vault server is running. | diff --git a/charts/gateway/templates/_pod.tpl b/charts/gateway/templates/_pod.tpl index 3ac09d0..6d0627c 100644 --- a/charts/gateway/templates/_pod.tpl +++ b/charts/gateway/templates/_pod.tpl @@ -76,7 +76,7 @@ spec: - name: http-{{ .port | toString }} containerPort: {{ .port }} protocol: TCP - {{- end }} + {{- end }} - name: tls containerPort: {{ .Values.gateway.tls.containerPort }} protocol: TCP @@ -84,7 +84,7 @@ spec: - name: tls-{{ .port | toString }} containerPort: {{ .port }} protocol: TCP - {{- end }} + {{- end }} {{- if .Values.admin.enabled }} - name: admin containerPort: {{ .Values.admin.port }} @@ -165,6 +165,35 @@ spec: {{- end }} resources: {{- toYaml .Values.apisix.resources | nindent 8 }} + {{- if .Values.soapProxy.enabled }} + - name: soap-proxy + image: {{ .Values.soapProxy.image.repository }}:{{ .Values.soapProxy.image.tag }} + imagePullPolicy: {{ .Values.soapProxy.image.pullPolicy }} + ports: + - containerPort: 5000 + name: http + protocol: TCP + readinessProbe: + failureThreshold: 6 + initialDelaySeconds: 5 + periodSeconds: 5 + successThreshold: 1 + timeoutSeconds: 1 + httpGet: + path: /_healthz + port: http + scheme: HTTP + livenessProbe: + failureThreshold: 6 + initialDelaySeconds: 5 + periodSeconds: 5 + successThreshold: 1 + timeoutSeconds: 1 + httpGet: + path: /_healthz + port: http + scheme: HTTP + {{- end }} {{- if .Values.apisix.hostNetwork }} hostNetwork: true dnsPolicy: ClusterFirstWithHostNet diff --git a/charts/gateway/values.yaml b/charts/gateway/values.yaml index 06d63e8..5eb143f 100644 --- a/charts/gateway/values.yaml +++ b/charts/gateway/values.yaml @@ -564,3 +564,15 @@ vault: token: "" # -- Prefix allows you to better enforcement of policies. prefix: "" + +soapProxy: + # -- Enable or disable the SOAP proxy feature, this feature is disabled by default, + # when use soap-proxy plugin in API7, you need to enable this feature. + enabled: false + image: + # -- SOAP proxy image repository + repository: api7/soap-proxy + # -- SOAP proxy image tag + tag: 1.0.0 + # -- SOAP proxy image pull policy + pullPolicy: IfNotPresent From 8d906daf7a02fd899922273acc4d205641cafe48 Mon Sep 17 00:00:00 2001 From: Nic Date: Sun, 28 Sep 2025 15:48:13 +0800 Subject: [PATCH 2/2] F Signed-off-by: Nic --- charts/gateway/README.md | 2 +- charts/gateway/values.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/gateway/README.md b/charts/gateway/README.md index 2ea8a79..c207e7b 100644 --- a/charts/gateway/README.md +++ b/charts/gateway/README.md @@ -220,7 +220,7 @@ The command removes all the Kubernetes components associated with the chart and | serviceMonitor.name | string | `""` | name of the serviceMonitor, by default, it is the same as the apisix fullname | | serviceMonitor.namespace | string | `""` | namespace where the serviceMonitor is deployed, by default, it is the same as the namespace of the apisix | | serviceMonitor.path | string | `"/apisix/prometheus/metrics"` | path of the metrics endpoint | -| soapProxy.enabled | bool | `false` | Enable or disable the SOAP proxy feature, this feature is disabled by default, when use soap-proxy plugin in API7, you need to enable this feature. | +| soapProxy.enabled | bool | `false` | Enable or disable the SOAP proxy, this component is disabled by default, when use soap-proxy plugin in API7, you need to enable this component. | | soapProxy.image.pullPolicy | string | `"IfNotPresent"` | SOAP proxy image pull policy | | soapProxy.image.repository | string | `"api7/soap-proxy"` | SOAP proxy image repository | | soapProxy.image.tag | string | `"1.0.0"` | SOAP proxy image tag | diff --git a/charts/gateway/values.yaml b/charts/gateway/values.yaml index 5eb143f..061d553 100644 --- a/charts/gateway/values.yaml +++ b/charts/gateway/values.yaml @@ -566,8 +566,8 @@ vault: prefix: "" soapProxy: - # -- Enable or disable the SOAP proxy feature, this feature is disabled by default, - # when use soap-proxy plugin in API7, you need to enable this feature. + # -- Enable or disable the SOAP proxy, this component is disabled by default, + # when use soap-proxy plugin in API7, you need to enable this component. enabled: false image: # -- SOAP proxy image repository