Skip to content

Commit 70f1a15

Browse files
committed
fix: add support for configuring etcd watch timeout
1 parent 9d5ad2a commit 70f1a15

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

charts/apisix/templates/configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ data:
384384
{{- end }}
385385
prefix: {{ .Values.etcd.prefix | quote }} # configuration prefix in etcd
386386
timeout: {{ .Values.etcd.timeout }} # 30 seconds
387+
watch_timeout: {{ .Values.etcd.watch_timeout }} # 50 seconds, default value from apisix
387388
{{- if and (not .Values.etcd.enabled) .Values.externalEtcd.user }}
388389
user: {{ .Values.externalEtcd.user | quote }}
389390
password: "{{ print "${{ APISIX_ETCD_PASSWORD }}" }}"

charts/apisix/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,8 @@ etcd:
643643
prefix: "/apisix"
644644
# -- Set the timeout value in seconds for subsequent socket operations from apisix to etcd cluster
645645
timeout: 30
646+
# -- Set the timeout value in seconds for apisix to wait for a response from etcd cluster when watching etcd changes
647+
watch_timeout: 50
646648

647649
# -- if etcd.enabled is true, set more values of bitnamilegacy/etcd helm chart
648650
auth:

0 commit comments

Comments
 (0)