|
|
@ -1,4 +1,6 @@ |
|
|
{{- if .Values.instance.zeoclient }} |
|
|
{{- if .Values.instance.zeoclient }} |
|
|
|
|
|
{{- $sizeGi := regexFind "[0-9]+" (.Values.persistence.size | toString) | int }} |
|
|
|
|
|
{{- $zeoInitialDelaySeconds := max 60 (int (mulf $sizeGi 0.9)) }} |
|
|
apiVersion: apps/v1 |
|
|
apiVersion: apps/v1 |
|
|
kind: Deployment |
|
|
kind: Deployment |
|
|
metadata: |
|
|
metadata: |
|
|
@ -87,7 +89,7 @@ spec: |
|
|
livenessProbe: |
|
|
livenessProbe: |
|
|
tcpSocket: |
|
|
tcpSocket: |
|
|
port: 8100 |
|
|
port: 8100 |
|
|
initialDelaySeconds: 90 |
|
|
initialDelaySeconds: {{ $zeoInitialDelaySeconds }} |
|
|
periodSeconds: 10 |
|
|
periodSeconds: 10 |
|
|
failureThreshold: 5 |
|
|
failureThreshold: 5 |
|
|
successThreshold: 1 |
|
|
successThreshold: 1 |
|
|
@ -95,7 +97,7 @@ spec: |
|
|
readinessProbe: |
|
|
readinessProbe: |
|
|
tcpSocket: |
|
|
tcpSocket: |
|
|
port: 8100 |
|
|
port: 8100 |
|
|
initialDelaySeconds: 90 |
|
|
initialDelaySeconds: {{ $zeoInitialDelaySeconds }} |
|
|
periodSeconds: 5 |
|
|
periodSeconds: 5 |
|
|
failureThreshold: 5 |
|
|
failureThreshold: 5 |
|
|
successThreshold: 1 |
|
|
successThreshold: 1 |
|
|
|