aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLazyDBA247-Anyvision <yonin@anyvision.co>2021-01-13 22:23:44 +0200
committerLazyDBA247-Anyvision <yonin@anyvision.co>2021-01-13 22:23:44 +0200
commitc1ed647dafae94b1e784c09f9b595105ed69a1f1 (patch)
tree5472098b98439e2227e9b96b018cba8385122ab1
parente57e6d667702680d19eba6c5a282aafdfbb7d91d (diff)
downloadseaweedfs-c1ed647dafae94b1e784c09f9b595105ed69a1f1.tar.xz
seaweedfs-c1ed647dafae94b1e784c09f9b595105ed69a1f1.zip
increase timeout
reduce unwanted k8s pod restarts on slow response
-rw-r--r--k8s/seaweedfs/templates/filer-statefulset.yaml4
-rw-r--r--k8s/seaweedfs/templates/master-statefulset.yaml4
-rw-r--r--k8s/seaweedfs/templates/s3-deployment.yaml5
-rw-r--r--k8s/seaweedfs/templates/volume-statefulset.yaml4
4 files changed, 8 insertions, 9 deletions
diff --git a/k8s/seaweedfs/templates/filer-statefulset.yaml b/k8s/seaweedfs/templates/filer-statefulset.yaml
index f54d7d455..023b0d5b9 100644
--- a/k8s/seaweedfs/templates/filer-statefulset.yaml
+++ b/k8s/seaweedfs/templates/filer-statefulset.yaml
@@ -178,7 +178,7 @@ spec:
periodSeconds: 15
successThreshold: 1
failureThreshold: 100
- timeoutSeconds: 3
+ timeoutSeconds: 10
livenessProbe:
httpGet:
path: /
@@ -188,7 +188,7 @@ spec:
periodSeconds: 30
successThreshold: 1
failureThreshold: 5
- timeoutSeconds: 3
+ timeoutSeconds: 10
{{- if .Values.filer.resources }}
resources:
{{ tpl .Values.filer.resources . | nindent 12 | trim }}
diff --git a/k8s/seaweedfs/templates/master-statefulset.yaml b/k8s/seaweedfs/templates/master-statefulset.yaml
index 48a42f155..e5a7a537a 100644
--- a/k8s/seaweedfs/templates/master-statefulset.yaml
+++ b/k8s/seaweedfs/templates/master-statefulset.yaml
@@ -163,7 +163,7 @@ spec:
periodSeconds: 45
successThreshold: 2
failureThreshold: 100
- timeoutSeconds: 5
+ timeoutSeconds: 10
livenessProbe:
httpGet:
path: /cluster/status
@@ -173,7 +173,7 @@ spec:
periodSeconds: 30
successThreshold: 1
failureThreshold: 4
- timeoutSeconds: 5
+ timeoutSeconds: 10
{{- if .Values.master.resources }}
resources:
{{ tpl .Values.master.resources . | nindent 12 | trim }}
diff --git a/k8s/seaweedfs/templates/s3-deployment.yaml b/k8s/seaweedfs/templates/s3-deployment.yaml
index 46bf91d85..ed01758b8 100644
--- a/k8s/seaweedfs/templates/s3-deployment.yaml
+++ b/k8s/seaweedfs/templates/s3-deployment.yaml
@@ -116,7 +116,6 @@ spec:
mountPath: /usr/local/share/ca-certificates/client/
{{- end }}
{{ tpl .Values.s3.extraVolumeMounts . | nindent 12 | trim }}
- {{- end }}
ports:
- containerPort: {{ .Values.s3.port }}
name: swfs-s3
@@ -129,7 +128,7 @@ spec:
periodSeconds: 15
successThreshold: 1
failureThreshold: 100
- timeoutSeconds: 3
+ timeoutSeconds: 10
livenessProbe:
httpGet:
path: /
@@ -139,7 +138,7 @@ spec:
periodSeconds: 60
successThreshold: 1
failureThreshold: 20
- timeoutSeconds: 3
+ timeoutSeconds: 10
{{- if .Values.s3.resources }}
resources:
{{ tpl .Values.s3.resources . | nindent 12 | trim }}
diff --git a/k8s/seaweedfs/templates/volume-statefulset.yaml b/k8s/seaweedfs/templates/volume-statefulset.yaml
index fff48095b..f9e55e0d3 100644
--- a/k8s/seaweedfs/templates/volume-statefulset.yaml
+++ b/k8s/seaweedfs/templates/volume-statefulset.yaml
@@ -158,7 +158,7 @@ spec:
periodSeconds: 90
successThreshold: 1
failureThreshold: 100
- timeoutSeconds: 5
+ timeoutSeconds: 30
livenessProbe:
httpGet:
path: /status
@@ -168,7 +168,7 @@ spec:
periodSeconds: 90
successThreshold: 1
failureThreshold: 4
- timeoutSeconds: 5
+ timeoutSeconds: 30
{{- if .Values.volume.resources }}
resources:
{{ tpl .Values.volume.resources . | nindent 12 | trim }}