diff options
author | 2020-10-02 16:39:13 +0200 | |
---|---|---|
committer | 2020-10-05 18:00:55 +0200 | |
commit | 32172345e3f07d8a1de4468ba2296561a170a392 (patch) | |
tree | a75930308dcecbbcb1b44d7f429eb6c4e89c105e /kubernetes/sdc/components/sdc-onboarding-be/templates/job.yaml | |
parent | 0394e0d21274fd742cadcf9e91e68395bbd6a63f (diff) |
[SDC] Update pod limits and timeouts
Add missing common flavor limits (and revisit some values)
Add fixed limits for single job containers and init containers (no need to have these configurable I think)
Reworked timeouts
Issue-ID: SDC-3282
Signed-off-by: ChrisC <christophe.closset@intl.att.com>
Change-Id: I2eb7122eed370978876ac496a68eebb51421595a
Diffstat (limited to 'kubernetes/sdc/components/sdc-onboarding-be/templates/job.yaml')
-rw-r--r-- | kubernetes/sdc/components/sdc-onboarding-be/templates/job.yaml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/kubernetes/sdc/components/sdc-onboarding-be/templates/job.yaml b/kubernetes/sdc/components/sdc-onboarding-be/templates/job.yaml index 936c7c41b5..c3003e2d1d 100644 --- a/kubernetes/sdc/components/sdc-onboarding-be/templates/job.yaml +++ b/kubernetes/sdc/components/sdc-onboarding-be/templates/job.yaml @@ -41,12 +41,21 @@ spec: args: - --job-name - {{ include "common.release" . }}-sdc-cs-config-cassandra + - "-t" + - "20" env: - name: NAMESPACE valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace + resources: + limits: + cpu: 100m + memory: 100Mi + requests: + cpu: 3m + memory: 20Mi containers: - name: {{ include "common.name" . }}-job image: "{{ include "common.repository" . }}/{{ .Values.onboardingInitImage }}" @@ -72,6 +81,13 @@ spec: secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: cs_password} - name: CS_HOST_IP value: "{{ .Values.global.cassandra.serviceName }}" + resources: + limits: + cpu: 800m + memory: 1024Mi + requests: + cpu: 200m + memory: 200Mi volumes: - name: {{ include "common.fullname" . }}-environments configMap: |