UNCLASSIFIED

Commit b8f9e4c5 authored by Kavitha Thulasiraman's avatar Kavitha Thulasiraman
Browse files

add resource and limit

parent 50510534
Pipeline #402913 passed with stages
in 2 minutes and 37 seconds
{{/*
twistlock.resources accepts a resource stanza as its scope and returns
resource configuration if any of the values are set.
*/}}
{{- define "twistlock.resources" -}}
{{- if . }}
resources:
{{- if .requests }}
requests:
{{- if .requests.cpu }}
cpu: {{ .requests.cpu | quote }}
{{- end }}
{{- if .requests.memory }}
memory: {{ .requests.memory | quote }}
{{- end }}
{{- end }}
{{- if .limits }}
limits:
{{- if .limits.cpu }}
cpu: {{ .limits.cpu | quote }}
{{- end }}
{{- if .limits.memory }}
memory: {{ .limits.memory | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
......@@ -64,10 +64,10 @@ tolerations:
resources:
limits:
memory: 256Mi
memory: 512Mi
cpu: 100m
requests:
memory: 256Mi
memory: 512Mi
cpu: 100m
openshift: false
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment