Skip to content

Commit

Permalink
Adding values in values.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Muneebstakater committed May 20, 2022
1 parent 63156ba commit ddf5f39
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
12 changes: 4 additions & 8 deletions charts/ingressmonitorcontroller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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:
Expand All @@ -95,4 +91,4 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
---
---
13 changes: 6 additions & 7 deletions charts/ingressmonitorcontroller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}

Expand Down

0 comments on commit ddf5f39

Please sign in to comment.