Skip to content

Commit 4ee56f1

Browse files
authored
chore: add soap-proxy container to gateway helm chart (#209)
Signed-off-by: Nic <[email protected]>
1 parent 4d33f8b commit 4ee56f1

File tree

3 files changed

+47
-2
lines changed

3 files changed

+47
-2
lines changed

charts/gateway/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ The command removes all the Kubernetes components associated with the chart and
220220
| serviceMonitor.name | string | `""` | name of the serviceMonitor, by default, it is the same as the apisix fullname |
221221
| serviceMonitor.namespace | string | `""` | namespace where the serviceMonitor is deployed, by default, it is the same as the namespace of the apisix |
222222
| serviceMonitor.path | string | `"/apisix/prometheus/metrics"` | path of the metrics endpoint |
223+
| 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. |
224+
| soapProxy.image.pullPolicy | string | `"IfNotPresent"` | SOAP proxy image pull policy |
225+
| soapProxy.image.repository | string | `"api7/soap-proxy"` | SOAP proxy image repository |
226+
| soapProxy.image.tag | string | `"1.0.0"` | SOAP proxy image tag |
223227
| updateStrategy | object | `{}` | |
224228
| vault.enabled | bool | `false` | Enable or disable the vault integration |
225229
| vault.host | string | `""` | The host address where the vault server is running. |

charts/gateway/templates/_pod.tpl

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ spec:
7676
- name: http-{{ .port | toString }}
7777
containerPort: {{ .port }}
7878
protocol: TCP
79-
{{- end }}
79+
{{- end }}
8080
- name: tls
8181
containerPort: {{ .Values.gateway.tls.containerPort }}
8282
protocol: TCP
8383
{{- range .Values.gateway.tls.additionalContainerPorts }}
8484
- name: tls-{{ .port | toString }}
8585
containerPort: {{ .port }}
8686
protocol: TCP
87-
{{- end }}
87+
{{- end }}
8888
{{- if .Values.admin.enabled }}
8989
- name: admin
9090
containerPort: {{ .Values.admin.port }}
@@ -165,6 +165,35 @@ spec:
165165
{{- end }}
166166
resources:
167167
{{- toYaml .Values.apisix.resources | nindent 8 }}
168+
{{- if .Values.soapProxy.enabled }}
169+
- name: soap-proxy
170+
image: {{ .Values.soapProxy.image.repository }}:{{ .Values.soapProxy.image.tag }}
171+
imagePullPolicy: {{ .Values.soapProxy.image.pullPolicy }}
172+
ports:
173+
- containerPort: 5000
174+
name: http
175+
protocol: TCP
176+
readinessProbe:
177+
failureThreshold: 6
178+
initialDelaySeconds: 5
179+
periodSeconds: 5
180+
successThreshold: 1
181+
timeoutSeconds: 1
182+
httpGet:
183+
path: /_healthz
184+
port: http
185+
scheme: HTTP
186+
livenessProbe:
187+
failureThreshold: 6
188+
initialDelaySeconds: 5
189+
periodSeconds: 5
190+
successThreshold: 1
191+
timeoutSeconds: 1
192+
httpGet:
193+
path: /_healthz
194+
port: http
195+
scheme: HTTP
196+
{{- end }}
168197
{{- if .Values.apisix.hostNetwork }}
169198
hostNetwork: true
170199
dnsPolicy: ClusterFirstWithHostNet

charts/gateway/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,3 +564,15 @@ vault:
564564
token: ""
565565
# -- Prefix allows you to better enforcement of policies.
566566
prefix: ""
567+
568+
soapProxy:
569+
# -- Enable or disable the SOAP proxy, this component is disabled by default,
570+
# when use soap-proxy plugin in API7, you need to enable this component.
571+
enabled: false
572+
image:
573+
# -- SOAP proxy image repository
574+
repository: api7/soap-proxy
575+
# -- SOAP proxy image tag
576+
tag: 1.0.0
577+
# -- SOAP proxy image pull policy
578+
pullPolicy: IfNotPresent

0 commit comments

Comments
 (0)