Skip to content

Commit bb765c2

Browse files
Add resources to container (#338)
* Add resources to container * minor fixes --------- Co-authored-by: rpotla <[email protected]>
1 parent 4024ed3 commit bb765c2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

deploy/chart/templates/daemonset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ spec:
101101
securityContext:
102102
{{- toYaml . | nindent 12 }}
103103
{{- end }}
104+
{{- with .Values.resources }}
105+
resources:
106+
{{- toYaml . | nindent 12 }}
107+
{{- end }}
104108
volumeMounts:
105109
- mountPath: /etc/kubernetes
106110
name: k8s

deploy/chart/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,13 @@ volumeMounts:
104104
# - mountPath: /tmp/
105105
# name: test-volume
106106

107+
resources:
108+
# requests:
109+
# memory: "100Mi"
110+
# cpu: "50m"
111+
# limits:
112+
# memory: "1000Mi"
113+
# cpu: "1000m"
114+
107115
# This flag allows to scrape /metrics endpoint without authorization
108116
allowUnauthorizedMetrics: false

0 commit comments

Comments
 (0)