Browse Source

increase timeout

reduce unwanted k8s pod restarts on slow response
pull/1742/head
LazyDBA247-Anyvision 4 years ago
parent
commit
c1ed647daf
  1. 4
      k8s/seaweedfs/templates/filer-statefulset.yaml
  2. 4
      k8s/seaweedfs/templates/master-statefulset.yaml
  3. 5
      k8s/seaweedfs/templates/s3-deployment.yaml
  4. 4
      k8s/seaweedfs/templates/volume-statefulset.yaml

4
k8s/seaweedfs/templates/filer-statefulset.yaml

@ -178,7 +178,7 @@ spec:
periodSeconds: 15 periodSeconds: 15
successThreshold: 1 successThreshold: 1
failureThreshold: 100 failureThreshold: 100
timeoutSeconds: 3
timeoutSeconds: 10
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /
@ -188,7 +188,7 @@ spec:
periodSeconds: 30 periodSeconds: 30
successThreshold: 1 successThreshold: 1
failureThreshold: 5 failureThreshold: 5
timeoutSeconds: 3
timeoutSeconds: 10
{{- if .Values.filer.resources }} {{- if .Values.filer.resources }}
resources: resources:
{{ tpl .Values.filer.resources . | nindent 12 | trim }} {{ tpl .Values.filer.resources . | nindent 12 | trim }}

4
k8s/seaweedfs/templates/master-statefulset.yaml

@ -163,7 +163,7 @@ spec:
periodSeconds: 45 periodSeconds: 45
successThreshold: 2 successThreshold: 2
failureThreshold: 100 failureThreshold: 100
timeoutSeconds: 5
timeoutSeconds: 10
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /cluster/status path: /cluster/status
@ -173,7 +173,7 @@ spec:
periodSeconds: 30 periodSeconds: 30
successThreshold: 1 successThreshold: 1
failureThreshold: 4 failureThreshold: 4
timeoutSeconds: 5
timeoutSeconds: 10
{{- if .Values.master.resources }} {{- if .Values.master.resources }}
resources: resources:
{{ tpl .Values.master.resources . | nindent 12 | trim }} {{ tpl .Values.master.resources . | nindent 12 | trim }}

5
k8s/seaweedfs/templates/s3-deployment.yaml

@ -116,7 +116,6 @@ spec:
mountPath: /usr/local/share/ca-certificates/client/ mountPath: /usr/local/share/ca-certificates/client/
{{- end }} {{- end }}
{{ tpl .Values.s3.extraVolumeMounts . | nindent 12 | trim }} {{ tpl .Values.s3.extraVolumeMounts . | nindent 12 | trim }}
{{- end }}
ports: ports:
- containerPort: {{ .Values.s3.port }} - containerPort: {{ .Values.s3.port }}
name: swfs-s3 name: swfs-s3
@ -129,7 +128,7 @@ spec:
periodSeconds: 15 periodSeconds: 15
successThreshold: 1 successThreshold: 1
failureThreshold: 100 failureThreshold: 100
timeoutSeconds: 3
timeoutSeconds: 10
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /
@ -139,7 +138,7 @@ spec:
periodSeconds: 60 periodSeconds: 60
successThreshold: 1 successThreshold: 1
failureThreshold: 20 failureThreshold: 20
timeoutSeconds: 3
timeoutSeconds: 10
{{- if .Values.s3.resources }} {{- if .Values.s3.resources }}
resources: resources:
{{ tpl .Values.s3.resources . | nindent 12 | trim }} {{ tpl .Values.s3.resources . | nindent 12 | trim }}

4
k8s/seaweedfs/templates/volume-statefulset.yaml

@ -158,7 +158,7 @@ spec:
periodSeconds: 90 periodSeconds: 90
successThreshold: 1 successThreshold: 1
failureThreshold: 100 failureThreshold: 100
timeoutSeconds: 5
timeoutSeconds: 30
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /status path: /status
@ -168,7 +168,7 @@ spec:
periodSeconds: 90 periodSeconds: 90
successThreshold: 1 successThreshold: 1
failureThreshold: 4 failureThreshold: 4
timeoutSeconds: 5
timeoutSeconds: 30
{{- if .Values.volume.resources }} {{- if .Values.volume.resources }}
resources: resources:
{{ tpl .Values.volume.resources . | nindent 12 | trim }} {{ tpl .Values.volume.resources . | nindent 12 | trim }}

Loading…
Cancel
Save