summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Hussey <sh8121@att.com>2018-03-28 16:33:31 -0500
committerScott Hussey <sh8121@att.com>2018-03-28 16:59:29 -0500
commitf1fbfa1d5ebd9491ed62c8b912c44aec3d163bae (patch)
treef3cc33b631478c02833f7a7eb3217b14dfc0129c
parent651cb8f816dd2e1fa1eb2ad641a8c532f3ac630b (diff)
[398399] Support resource limits
- Add resource limit support to each daemon set Change-Id: I4680f70338627144e7b3ffa1625eba2ce3a33f25
-rw-r--r--divingbell/templates/daemonset-ethtool.yaml1
-rw-r--r--divingbell/templates/daemonset-mounts.yaml1
-rw-r--r--divingbell/templates/daemonset-sysctl.yaml1
-rw-r--r--divingbell/templates/daemonset-uamlite.yaml1
-rw-r--r--divingbell/values.yaml30
5 files changed, 34 insertions, 0 deletions
diff --git a/divingbell/templates/daemonset-ethtool.yaml b/divingbell/templates/daemonset-ethtool.yaml
index 8490cbf..06404bf 100644
--- a/divingbell/templates/daemonset-ethtool.yaml
+++ b/divingbell/templates/daemonset-ethtool.yaml
@@ -38,6 +38,7 @@ spec:
38 - name: {{ $daemonset }} 38 - name: {{ $daemonset }}
39 image: {{ .Values.images.divingbell }} 39 image: {{ .Values.images.divingbell }}
40 imagePullPolicy: {{ .Values.images.pull_policy }} 40 imagePullPolicy: {{ .Values.images.pull_policy }}
41{{ tuple $envAll $envAll.Values.pod.resources.ethtool | include "helm-toolkit.snippets.kubernetes_resources" | indent 8 }}
41 command: 42 command:
42 - /tmp/{{ $daemonset }}.sh 43 - /tmp/{{ $daemonset }}.sh
43 volumeMounts: 44 volumeMounts:
diff --git a/divingbell/templates/daemonset-mounts.yaml b/divingbell/templates/daemonset-mounts.yaml
index 5d22d89..0d4d106 100644
--- a/divingbell/templates/daemonset-mounts.yaml
+++ b/divingbell/templates/daemonset-mounts.yaml
@@ -38,6 +38,7 @@ spec:
38 - name: {{ $daemonset }} 38 - name: {{ $daemonset }}
39 image: {{ .Values.images.divingbell }} 39 image: {{ .Values.images.divingbell }}
40 imagePullPolicy: {{ .Values.images.pull_policy }} 40 imagePullPolicy: {{ .Values.images.pull_policy }}
41{{ tuple $envAll $envAll.Values.pod.resources.mounts | include "helm-toolkit.snippets.kubernetes_resources" | indent 8 }}
41 command: 42 command:
42 - /tmp/{{ $daemonset }}.sh 43 - /tmp/{{ $daemonset }}.sh
43 volumeMounts: 44 volumeMounts:
diff --git a/divingbell/templates/daemonset-sysctl.yaml b/divingbell/templates/daemonset-sysctl.yaml
index 217fa60..4fca19a 100644
--- a/divingbell/templates/daemonset-sysctl.yaml
+++ b/divingbell/templates/daemonset-sysctl.yaml
@@ -38,6 +38,7 @@ spec:
38 - name: {{ $daemonset }} 38 - name: {{ $daemonset }}
39 image: {{ .Values.images.divingbell }} 39 image: {{ .Values.images.divingbell }}
40 imagePullPolicy: {{ .Values.images.pull_policy }} 40 imagePullPolicy: {{ .Values.images.pull_policy }}
41{{ tuple $envAll $envAll.Values.pod.resources.sysctl | include "helm-toolkit.snippets.kubernetes_resources" | indent 8 }}
41 command: 42 command:
42 - /tmp/{{ $daemonset }}.sh 43 - /tmp/{{ $daemonset }}.sh
43 volumeMounts: 44 volumeMounts:
diff --git a/divingbell/templates/daemonset-uamlite.yaml b/divingbell/templates/daemonset-uamlite.yaml
index 7baa706..85ef8bd 100644
--- a/divingbell/templates/daemonset-uamlite.yaml
+++ b/divingbell/templates/daemonset-uamlite.yaml
@@ -38,6 +38,7 @@ spec:
38 - name: {{ $daemonset }} 38 - name: {{ $daemonset }}
39 image: {{ .Values.images.divingbell }} 39 image: {{ .Values.images.divingbell }}
40 imagePullPolicy: {{ .Values.images.pull_policy }} 40 imagePullPolicy: {{ .Values.images.pull_policy }}
41{{ tuple $envAll $envAll.Values.pod.resources.uamlite | include "helm-toolkit.snippets.kubernetes_resources" | indent 8 }}
41 command: 42 command:
42 - /tmp/{{ $daemonset }}.sh 43 - /tmp/{{ $daemonset }}.sh
43 volumeMounts: 44 volumeMounts:
diff --git a/divingbell/values.yaml b/divingbell/values.yaml
index e070554..2ee97ba 100644
--- a/divingbell/values.yaml
+++ b/divingbell/values.yaml
@@ -46,3 +46,33 @@ pod:
46 enabled: true 46 enabled: true
47 min_ready_seconds: 0 47 min_ready_seconds: 0
48 max_unavailable: 100% 48 max_unavailable: 100%
49 resources:
50 enabled: false
51 ethtool:
52 limits:
53 memory: "128Mi"
54 cpu: "100m"
55 requests:
56 memory: "128Mi"
57 cpu: "100m"
58 mounts:
59 limits:
60 memory: "128Mi"
61 cpu: "100m"
62 requests:
63 memory: "128Mi"
64 cpu: "100m"
65 uamlite:
66 limits:
67 memory: "128Mi"
68 cpu: "100m"
69 requests:
70 memory: "128Mi"
71 cpu: "100m"
72 sysctl:
73 limits:
74 memory: "128Mi"
75 cpu: "100m"
76 requests:
77 memory: "128Mi"
78 cpu: "100m"