From 09fc64850c38ff545b0771438bc5b40396a1cf31 Mon Sep 17 00:00:00 2001 From: pahmadi8740 Date: Wed, 20 Sep 2023 11:06:48 -0400 Subject: [PATCH 1/2] feat: adding resources --- deploy/templates/deployment.yaml | 4 ++++ deploy/values.yaml | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/deploy/templates/deployment.yaml b/deploy/templates/deployment.yaml index 7e53a754..9a426dd6 100644 --- a/deploy/templates/deployment.yaml +++ b/deploy/templates/deployment.yaml @@ -19,6 +19,10 @@ spec: serviceAccountName: {{ include "bte.serviceAccountName" . }} containers: - name: {{ .Chart.Name }} + {{- with .Values.resources }} + resources: + {{- toYaml . | nindent 12 }} + {{- end }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: diff --git a/deploy/values.yaml b/deploy/values.yaml index a0b8b898..e5baa909 100644 --- a/deploy/values.yaml +++ b/deploy/values.yaml @@ -78,3 +78,10 @@ affinity: values: - bte topologyKey: "kubernetes.io/hostname" +resources: + requests: + memory: 56Gi + cpu: 13000m + limits: + memory: 58Gi + cpu: 14000m \ No newline at end of file From f6a0805a3b20a28d09235055b1331aaa19e4580d Mon Sep 17 00:00:00 2001 From: pahmadi8740 Date: Wed, 20 Sep 2023 12:00:39 -0400 Subject: [PATCH 2/2] feat: adding resources --- deploy/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/Chart.yaml b/deploy/Chart.yaml index 49a6c607..3f564e84 100644 --- a/deploy/Chart.yaml +++ b/deploy/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0 +version: 0.1.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to