Skip to content

Commit ddf5f39

Browse files
Adding values in values.yaml
1 parent 63156ba commit ddf5f39

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

charts/ingressmonitorcontroller/templates/deployment.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ spec:
4141
- containerPort: 8443
4242
name: https
4343
{{- end }}
44+
resources:
45+
{{- toYaml .Values.resources | nindent 10 }}
4446
- args:
4547
- --health-probe-bind-address=:8081
4648
- --metrics-bind-address=127.0.0.1:8080
@@ -59,10 +61,6 @@ spec:
5961
envFrom:
6062
{{- toYaml .Values.envFrom | nindent 8 }}
6163
{{- end }}
62-
{{- if .Values.resources }}
63-
resources:
64-
{{ toYaml .Values.resources | indent 10 }}
65-
{{- end }}
6664
name: manager
6765
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
6866
imagePullPolicy: {{ .Values.image.pullPolicy }}
@@ -78,10 +76,8 @@ spec:
7876
port: 8081
7977
initialDelaySeconds: 5
8078
periodSeconds: 10
81-
{{- if .Values.resources }}
8279
resources:
83-
{{ toYaml .Values.resources | indent 10 }}
84-
{{- end }}
80+
{{- toYaml .Values.resources | nindent 10 }}
8581
terminationGracePeriodSeconds: 10
8682
{{- with .Values.nodeSelector }}
8783
nodeSelector:
@@ -95,4 +91,4 @@ spec:
9591
tolerations:
9692
{{- toYaml . | nindent 8 }}
9793
{{- end }}
98-
---
94+
---

charts/ingressmonitorcontroller/values.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,12 @@ serviceAccount:
4848
name: ""
4949

5050
resources:
51-
{}
52-
# limits:
53-
# cpu: 100m
54-
# memory: 128Mi
55-
# requests:
56-
# cpu: 100m
57-
# memory: 128Mi
51+
limits:
52+
cpu: 100m
53+
memory: 128Mi
54+
requests:
55+
cpu: 100m
56+
memory: 128Mi
5857

5958
podAnnotations: {}
6059

0 commit comments

Comments
 (0)