File tree Expand file tree Collapse file tree 3 files changed +17
-8
lines changed
Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 11name : consul
22home : https://github.com/hashicorp/consul
3- version : 1.1.3
3+ version : 1.1.4
44appVersion : 1.0.0
55description : Highly available and distributed service discovery and key-value store
66 designed with support for the modern data center to make distributed systems and
Original file line number Diff line number Diff line change @@ -263,7 +263,8 @@ spec:
263263 ${GOSSIP_KEY} \
264264 {{- end }}
265265 -client=0.0.0.0 \
266- -dns-port=${DNSPORT}
266+ -dns-port=${DNSPORT} \
267+ -http-port={{ .Values.HttpPort }}
267268 volumes :
268269 - name : gossip-key
269270 secret :
Original file line number Diff line number Diff line change 66 run.sh : |-
77 @test "Testing Consul cluster has quorum" {
88 for i in {0..2}; do
9- if [ `kubectl exec {{ .Release.Name }}-consul-$i consul members --namespace={{ .Release.Namespace }} | grep server | wc -l` -ge "3" ]; then
10- echo "{{ .Release.Name }}-consul-$i OK. consul members returning at least 3 records."
11- else
12- echo "{{ .Release.Name }}-consul-$i ERROR. consul members returning less than 3 records."
13- exit 1
14- fi
9+ for n in {1..30}; do
10+ if [ `kubectl exec {{ .Release.Name }}-consul-$i consul members --namespace={{ .Release.Namespace }} | grep server | wc -l` -ge "3" ]; then
11+ echo "{{ .Release.Name }}-consul-$i OK. consul members returning at least 3 records."
12+ break
13+ else
14+ echo "{{ .Release.Name }}-consul-$i ERROR. consul members returning less than 3 records."
15+ fi
16+
17+ if [ "$n" -ge "30" ]; then
18+ echo "Failed $n times to get members from {{ .Release.Name }}-consul-$i"
19+ exit 1
20+ fi
21+ sleep 10
22+ done
1523 done
1624 }
You can’t perform that action at this time.
0 commit comments