[bitnami/kong]Adds externalTrafficPolicy setting to kong service (#6171)

* [bitnami/kong]Added externalTrafficPolicy setting to kong service

* Bumped version to 3.5.0

* [bitnami/kong] Update components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: David <david@Davids-MacBook-Pro.local>
Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
Co-authored-by: Bitnami Containers <containers@bitnami.com>
This commit is contained in:
David
2021-04-22 12:45:42 +02:00
committed by GitHub
parent 7929fb76bd
commit e5c8f2b087
4 changed files with 14 additions and 3 deletions

View File

@@ -34,4 +34,4 @@ name: kong
sources:
- https://github.com/bitnami/bitnami-docker-kong
- https://konghq.com/
version: 3.4.9
version: 3.5.0

View File

@@ -124,6 +124,7 @@ The following tables list the configurable parameters of the kong chart and thei
| Parameter | Description | Default |
|----------------------------------|------------------------------------------------------------------|--------------------------------|
| `service.type` | Kubernetes Service type | `ClusterIP` |
| `service.externalTrafficPolicy` | external traffic policy managing client source IP preservation | `Cluster` |
| `service.exposeAdmin` | Add the Kong Admin ports to the service | `false` |
| `service.proxyHttpPort` | kong proxy HTTP service port port | `80` |
| `service.proxyHttpsPort` | kong proxy HTTPS service port port | `443` |

View File

@@ -19,6 +19,9 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.externalTrafficPolicy)) }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
{{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerIP)) }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}

View File

@@ -14,7 +14,7 @@
image:
registry: docker.io
repository: bitnami/kong
tag: 2.3.3-debian-10-r42
tag: 2.3.3-debian-10-r43
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -162,7 +162,7 @@ ingressController:
image:
registry: docker.io
repository: bitnami/kong-ingress-controller
tag: 1.2.0-debian-10-r26
tag: 1.2.0-debian-10-r27
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -335,6 +335,13 @@ service:
##
type: ClusterIP
## externalTrafficPolicy for the service
## default to "Cluster"
## set to "Local" in order to preserve the client source IP (only on service of type LoadBalancer or NodePort)
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
##
externalTrafficPolicy:
## kong proxy HTTP service port
##
proxyHttpPort: 80