helm: hardcode probes and strategy, remove from values.yaml
This commit is contained in:
@@ -10,12 +10,10 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.replicaCount }}
|
replicas: {{ .Values.replicaCount }}
|
||||||
strategy:
|
strategy:
|
||||||
type: {{ .Values.strategy.type }}
|
type: RollingUpdate
|
||||||
{{- if eq .Values.strategy.type "RollingUpdate" }}
|
|
||||||
rollingUpdate:
|
rollingUpdate:
|
||||||
maxSurge: {{ .Values.strategy.rollingUpdate.maxSurge }}
|
maxSurge: 1
|
||||||
maxUnavailable: {{ .Values.strategy.rollingUpdate.maxUnavailable }}
|
maxUnavailable: 0
|
||||||
{{- end }}
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "shared-sqs.selectorLabels" . | nindent 6 }}
|
{{- include "shared-sqs.selectorLabels" . | nindent 6 }}
|
||||||
@@ -79,16 +77,16 @@ spec:
|
|||||||
{{- toYaml .Values.resources | nindent 10 }}
|
{{- toYaml .Values.resources | nindent 10 }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: {{ .Values.probes.liveness.path }}
|
path: /health
|
||||||
port: 4100
|
port: 4100
|
||||||
initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
|
initialDelaySeconds: 5
|
||||||
periodSeconds: {{ .Values.probes.liveness.periodSeconds }}
|
periodSeconds: 10
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: {{ .Values.probes.readiness.path }}
|
path: /health
|
||||||
port: 4100
|
port: 4100
|
||||||
initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
|
initialDelaySeconds: 3
|
||||||
periodSeconds: {{ .Values.probes.readiness.periodSeconds }}
|
periodSeconds: 5
|
||||||
{{- with .Values.imagePullSecrets }}
|
{{- with .Values.imagePullSecrets }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
|||||||
@@ -74,24 +74,6 @@ ingress:
|
|||||||
# Имя Secret куда cert-manager положит TLS-сертификат
|
# Имя Secret куда cert-manager положит TLS-сертификат
|
||||||
secretName: shared-sqs-tls
|
secretName: shared-sqs-tls
|
||||||
|
|
||||||
# Параметры проверки здоровья пода. Менять не нужно.
|
|
||||||
probes:
|
|
||||||
liveness:
|
|
||||||
path: /health
|
|
||||||
initialDelaySeconds: 5
|
|
||||||
periodSeconds: 10
|
|
||||||
readiness:
|
|
||||||
path: /health
|
|
||||||
initialDelaySeconds: 3
|
|
||||||
periodSeconds: 5
|
|
||||||
|
|
||||||
# Стратегия обновления. RollingUpdate — обновление без даунтайма.
|
|
||||||
strategy:
|
|
||||||
type: RollingUpdate
|
|
||||||
rollingUpdate:
|
|
||||||
maxSurge: 1
|
|
||||||
maxUnavailable: 0
|
|
||||||
|
|
||||||
# Биллинг — запись статистики по всем SQS-операциям в PostgreSQL.
|
# Биллинг — запись статистики по всем SQS-операциям в PostgreSQL.
|
||||||
# Если PostgreSQL нет — поставьте enabled: false, остальное игнорируется.
|
# Если PostgreSQL нет — поставьте enabled: false, остальное игнорируется.
|
||||||
billing:
|
billing:
|
||||||
|
|||||||
Reference in New Issue
Block a user