Allow consul's gossip encryption to be turned off (#1512)

This commit is contained in:
Jonathan Stacks
2017-08-13 19:07:27 +02:00
committed by Reinhard Nägele
parent c01a9e4642
commit 899dae1e54
3 changed files with 8 additions and 0 deletions
+1
View File
@@ -35,6 +35,7 @@ The following tables lists the configurable parameters of the consul chart and t
| `Cpu` | container requested cpu | `100m` |
| `DatacenterName` | Consul Datacenter Name | `dc1` (The consul default) |
| `DisableHostNodeId` | Disable Node Id creation (uses random)| `false` |
| `EncryptGossip` | Whether or not gossip is encrypted | `true` |
| `Memory` | container requested memory | `512Mi` |
| `Storage` | Persistent volume size | `1Gi` |
| `StorageClass` | Persistent volume storage class | `nil` |
+4
View File
@@ -156,10 +156,12 @@ spec:
- |
IP=$(hostname -i)
{{- if .Values.EncryptGossip }}
if [ -e /etc/consul/secrets/gossip-key ]; then
echo "{\"encrypt\": \"$(base64 /etc/consul/secrets/gossip-key)\"}" > /etc/consul/encrypt.json
GOSSIP_KEY="-config-file /etc/consul/encrypt.json"
fi
{{- end }}
for i in $(seq 0 $((${INITIAL_CLUSTER_SIZE} - 1))); do
while true; do
@@ -190,7 +192,9 @@ spec:
-bind=0.0.0.0 \
-advertise=${IP} \
${PEERS} \
{{- if .Values.EncryptGossip }}
${GOSSIP_KEY} \
{{- end }}
-client=0.0.0.0 \
-dns-port=${DNSPORT}
volumes:
+3
View File
@@ -32,6 +32,9 @@ DisableHostNodeId: false
## default 'dc1'
# DatacenterName: dc1
## Encrypt Gossip traffic
EncryptGossip: true
## StorageClass name for use with Persistent Volume Claim (PVC) using beta notations
# StorageClass: