Add controller manager resource limits

- Add missing resource limits for static pod for
  Kubernetes controller manager

Change-Id: Ie4586217c9f6ec12f65c0b522a3c1e4c65e30ef0
This commit is contained in:
Scott Hussey 2018-04-02 14:33:32 -05:00
parent 88681e754a
commit 5fb15f8670
3 changed files with 9 additions and 2 deletions

View File

@ -53,7 +53,7 @@ spec:
value: /host{{ .Values.anchor.kubelet.manifest_path }}/kubernetes-controller-manager.yaml
- name: ETC_PATH
value: /host{{ .Values.controller_manager.host_etc_path }}
{{ tuple $envAll $envAll.Values.pod.resources.controller_manager | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
{{ tuple $envAll $envAll.Values.pod.resources.anchor_pod | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
command:
- /tmp/bin/anchor
lifecycle:

View File

@ -27,6 +27,7 @@ spec:
containers:
- name: controller-manager
image: {{ .Values.images.tags.controller_manager }}
{{ tuple $envAll $envAll.Values.pod.resources.controller_manager | include "helm-toolkit.snippets.kubernetes_resources" | indent 6 }}
env:
- name: POD_IP
valueFrom:

View File

@ -100,7 +100,13 @@ pod:
limits:
memory: "1024Mi"
cpu: "2000m"
anchor_pod:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "1024Mi"
cpu: "2000m"
manifests:
configmap_bin: true
configmap_etc: true