[stable/ambassador] Support additional TCP ports in Ambassador (#15028)

* [stable/ambassador] Adding in additional TCP Port support for use with TCPMappings

Signed-off-by: Matt Christiansen <mchristiansen@exabeam.com>

* Changing version to minor version

Signed-off-by: Matt Christiansen <mchristiansen@exabeam.com>
This commit is contained in:
Matt Christiansen
2019-06-25 12:49:58 -07:00
committed by Kubernetes Prow Robot
parent 47633a3d47
commit c19be0a780
5 changed files with 15 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 0.72.0
description: A Helm chart for Datawire Ambassador
name: ambassador
version: 2.9.0
version: 2.10.0
icon: https://www.getambassador.io/images/logo.png
home: https://www.getambassador.io/
sources:
+1
View File
@@ -103,6 +103,7 @@ The following tables lists the configurable parameters of the Ambassador chart a
| `autoscaling.minReplica` | If autoscaling enabled, this field sets minimum replica count | `2` |
| `autoscaling.maxReplica` | If autoscaling enabled, this field sets maximum replica count | `5` |
| `autoscaling.metrics` | If autoscaling enabled, configure hpa metrics | |
| `additionalTCPPorts` | List of additional TCP ports to be exposed by the container and service | `[]` |
**NOTE:** Make sure the configured `service.http.targetPort` and `service.https.targetPort` ports match your [Ambassador Module's](https://www.getambassador.io/reference/modules/#the-ambassador-module) `service_port` and `redirect_cleartext_from` configurations.
+5 -1
View File
@@ -100,6 +100,11 @@ spec:
{{- end }}
- name: admin
containerPort: 8877
{{- range $key := .Values.additionalTCPPorts }}
- name: "{{ $key }}-tcp"
containerPort: {{ $key }}
protocol: TCP
{{- end }}
env:
- name: HOST_IP
valueFrom:
@@ -201,4 +206,3 @@ spec:
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
dnsPolicy: {{ .Values.dnsPolicy }}
hostNetwork: {{ .Values.hostNetwork }}
+6
View File
@@ -38,6 +38,12 @@ spec:
nodePort: {{ toYaml . }}
{{- end }}
{{- end }}
{{- range $key := .Values.additionalTCPPorts }}
- name: "{{ $key }}-tcp"
port: {{ $key }}
protocol: TCP
targetPort: "{{ $key }}-tcp"
{{- end }}
selector:
app.kubernetes.io/name: {{ include "ambassador.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
+2
View File
@@ -109,6 +109,8 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name:
additionalTCPPorts: []
initContainers: []
volumes: []