Skip to content

Commit 53fc2a5

Browse files
rammanojrpotla-akam
authored andcommitted
Add resources to container (linode#338)
* Add resources to container * minor fixes --------- Co-authored-by: rpotla <rpotla@akamai.com>
1 parent b71b9bf commit 53fc2a5

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
@@ -110,6 +110,10 @@ spec:
110110
securityContext:
111111
{{- toYaml . | nindent 12 }}
112112
{{- end }}
113+
{{- with .Values.resources }}
114+
resources:
115+
{{- toYaml . | nindent 12 }}
116+
{{- end }}
113117
volumeMounts:
114118
- mountPath: /etc/kubernetes
115119
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)