diff --git a/helm/bot-telegram/templates/deployment.yaml b/helm/bot-telegram/templates/deployment.yaml index fb68fd9..9ea8ba9 100644 --- a/helm/bot-telegram/templates/deployment.yaml +++ b/helm/bot-telegram/templates/deployment.yaml @@ -27,6 +27,7 @@ spec: serviceAccountName: {{ include "bot-telegram.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} + priority: "{{ .Values.priority }}" containers: - name: {{ .Chart.Name }} env: diff --git a/helm/bot-telegram/values.yaml b/helm/bot-telegram/values.yaml index 1845675..bcfa957 100644 --- a/helm/bot-telegram/values.yaml +++ b/helm/bot-telegram/values.yaml @@ -68,17 +68,19 @@ ingress: resources: requests: cpu: 2m - memory: 16Mi + memory: 8Mi limits: cpu: 1000m - memory: 256Mi + memory: 64Mi autoscaling: enabled: true minReplicas: 1 maxReplicas: 100 - targetCPUUtilizationValue: 1000m - targetMemoryUtilizationValue: 128Mi + targetCPUUtilizationValue: 100m + targetMemoryUtilizationValue: 64Mi + +priority: 1 nodeSelector: {}