From ddf5f3983040c61b4cc1a1098582850510904274 Mon Sep 17 00:00:00 2001 From: Muneebstakater Date: Fri, 20 May 2022 15:46:22 +0500 Subject: [PATCH] Adding values in values.yaml --- .../templates/deployment.yaml | 12 ++++-------- charts/ingressmonitorcontroller/values.yaml | 13 ++++++------- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/charts/ingressmonitorcontroller/templates/deployment.yaml b/charts/ingressmonitorcontroller/templates/deployment.yaml index 54f9d18d..e96a2695 100644 --- a/charts/ingressmonitorcontroller/templates/deployment.yaml +++ b/charts/ingressmonitorcontroller/templates/deployment.yaml @@ -41,6 +41,8 @@ spec: - containerPort: 8443 name: https {{- end }} + resources: + {{- toYaml .Values.resources | nindent 10 }} - args: - --health-probe-bind-address=:8081 - --metrics-bind-address=127.0.0.1:8080 @@ -59,10 +61,6 @@ spec: envFrom: {{- toYaml .Values.envFrom | nindent 8 }} {{- end }} - {{- if .Values.resources }} - resources: -{{ toYaml .Values.resources | indent 10 }} - {{- end }} name: manager image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} @@ -78,10 +76,8 @@ spec: port: 8081 initialDelaySeconds: 5 periodSeconds: 10 - {{- if .Values.resources }} resources: -{{ toYaml .Values.resources | indent 10 }} - {{- end }} + {{- toYaml .Values.resources | nindent 10 }} terminationGracePeriodSeconds: 10 {{- with .Values.nodeSelector }} nodeSelector: @@ -95,4 +91,4 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} ---- +--- \ No newline at end of file diff --git a/charts/ingressmonitorcontroller/values.yaml b/charts/ingressmonitorcontroller/values.yaml index 91109672..aa132e0d 100644 --- a/charts/ingressmonitorcontroller/values.yaml +++ b/charts/ingressmonitorcontroller/values.yaml @@ -48,13 +48,12 @@ serviceAccount: name: "" resources: - {} - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi + limits: + cpu: 100m + memory: 128Mi + requests: + cpu: 100m + memory: 128Mi podAnnotations: {}