[bitnami/consul] Add configurable service session affinity (#3640)

* Add configurable session affinity

* Bump version of Consul chart

* Update README with new value

* Added sessionAffinity to values-production.yaml

* Align use of spaces in consul-service.yaml
This commit is contained in:
Rasmus Mikkelsen
2020-09-11 10:02:36 +02:00
committed by GitHub
parent bacdd8226b
commit 95a43f0023
5 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: consul
version: 7.1.8
version: 7.2.0
appVersion: 1.8.3
description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and configuration easy.
home: https://github.com/bitnami/charts/tree/master/bitnami/consul

View File

@@ -111,6 +111,7 @@ The following tables lists the configurable parameters of the HashiCorp Consul c
| `service.serverPort` | Container server listening port | `8300` |
| `service.consulDnsPort` | Container dns listening port | `8600` |
| `service.uiPort` | HashiCorp Consul UI port | `80` |
| `service.sessionAffinity` | Session affinity of the service | `None` |
| `ui.service.enabled` | Use a service to access HashiCorp Consul Ui | `true` |
| `ui.service.type` | Kubernetes Service Type | `ClusterIP` |
| `ui.service.nodePort` | Kubernetes node port for HashiCorp Consul UI | `""` |

View File

@@ -20,11 +20,12 @@ spec:
protocol: "UDP"
port: {{ .Values.service.serflanPort }}
- name: server
port: {{.Values.service.serverPort}}
port: {{ .Values.service.serverPort }}
- name: consuldns-tcp
port: {{.Values.service.consulDnsPort}}
port: {{ .Values.service.consulDnsPort }}
- name: consuldns-udp
protocol: "UDP"
port: {{.Values.service.consulDnsPort}}
port: {{ .Values.service.consulDnsPort }}
clusterIP: None
sessionAffinity: {{ .Values.service.sessionAffinity }}
selector: {{- include "consul.matchLabels" . | nindent 4 }}

View File

@@ -251,6 +251,7 @@ service:
serverPort: 8300
consulDnsPort: 8600
uiPort: 80
sessionAffinity: "None"
## HashiCorp Consul UI service parameters
##

View File

@@ -251,6 +251,7 @@ service:
serverPort: 8300
consulDnsPort: 8600
uiPort: 80
sessionAffinity: "None"
## HashiCorp Consul UI service parameters
##