Commit 74449a6 1 parent 55a38f6 commit 74449a6 Copy full SHA for 74449a6
File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,28 @@ spec:
32
32
- name : deis-router
33
33
image : quay.io/{{.Values.org}}/router:{{.Values.docker_tag}}
34
34
imagePullPolicy : {{.Values.pull_policy}}
35
- {{- if or (.Values.limits_cpu) (.Values.limits_memory)}}
35
+ {{- if or (.Values.limits_cpu) (.Values.limits_memory) (.Values.requests_cpu) (.Values.requests_memory) }}
36
36
resources :
37
+ {{- if or (.Values.limits_cpu) (.Values.limits_memory)}}
37
38
limits :
38
39
{{- if (.Values.limits_cpu) }}
39
40
cpu : {{.Values.limits_cpu}}
40
41
{{- end}}
41
42
{{- if (.Values.limits_memory) }}
42
43
memory : {{.Values.limits_memory}}
43
44
{{- end}}
45
+ {{- end}} {{/* end limits section */}}
46
+ {{- if or (.Values.requests_cpu) (.Values.requests_memory)}}
47
+ requests :
48
+ {{- if (.Values.requests_cpu) }}
49
+ cpu : {{.Values.requests_cpu}}
50
+ {{- end}}
51
+ {{- if (.Values.requests_memory) }}
52
+ memory : {{.Values.requests_memory}}
44
53
{{- end}}
54
+ {{- end}} {{/* end requests section */}}
55
+ {{- end}} {{/* end resources section */}}
56
+
45
57
env :
46
58
- name : POD_NAMESPACE
47
59
valueFrom :
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ platform_domain: ""
5
5
dhparam : " "
6
6
# limits_cpu: "100m"
7
7
# limits_memory: "50Mi"
8
+ # requests_cpu: "100m"
9
+ # requests_memory: "50Mi"
8
10
9
11
# Any custom router annotations(https://github.com/deis/router#annotations)
10
12
# which need to be applied can be specified as key-value pairs under "deployment_annotations"
You can’t perform that action at this time.
0 commit comments