features: revisionHistoryLimit and taskiq specific resources specification

This commit is contained in:
Dev Jadeja
2025-02-12 12:22:36 +05:30
parent 474c501d56
commit cb7070ac1d
4 changed files with 7 additions and 2 deletions

View File

@ -8,6 +8,7 @@ metadata:
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit | default 5 }}
{{- end }}
{{- with .Values.updateStrategy }}
strategy:
@ -53,6 +54,9 @@ spec:
startupProbe: {{ . | toYaml | nindent 12 }}
{{- end }}
{{- include "py-app.envs" . | indent 10 -}}
{{- with .Values.securityContext }}
securityContext: {{ . | toYaml | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}

View File

@ -33,5 +33,5 @@ spec:
command: {{ .Values.taskiq.schedulerCmd | toYaml | nindent 10 }}
{{- include "py-app.envs" . | indent 10 -}}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- toYaml .Values.taskiq.resources | nindent 12 }}
{{- end }}

View File

@ -39,5 +39,5 @@ spec:
command: {{ .Values.taskiq.workerCmd | toYaml | nindent 10 }}
{{- include "py-app.envs" . | indent 10 -}}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- toYaml .Values.taskiq.resources | nindent 12 }}
{{- end }}

View File

@ -30,6 +30,7 @@ ttlSecondsAfterFinished: 3600
taskiq:
workerCmd: []
schedulerCmd: []
resources: {}
workers: 1
autoscaling:
enabled: false