diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2017-06-27 16:09:15 -0700 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2017-06-27 16:09:15 -0700 |
commit | 806c9ae04f52016e3498930df9a781fef42078c4 (patch) | |
tree | ac79688fefbfe473d9a1750258edc4fd6eb5dc4c /roles/openshift_logging_fluentd | |
parent | 77d8b348f09fe078e425b76079cc716520198b21 (diff) | |
download | openshift-806c9ae04f52016e3498930df9a781fef42078c4.tar.gz openshift-806c9ae04f52016e3498930df9a781fef42078c4.tar.bz2 openshift-806c9ae04f52016e3498930df9a781fef42078c4.tar.xz openshift-806c9ae04f52016e3498930df9a781fef42078c4.zip |
Sync environment variables FLUENTD/MUX_CPU_LIMIT FLUENTD/MUX_MEMORY_LIMIT with the resource limit values.
Diffstat (limited to 'roles/openshift_logging_fluentd')
-rw-r--r-- | roles/openshift_logging_fluentd/templates/fluentd.j2 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/roles/openshift_logging_fluentd/templates/fluentd.j2 b/roles/openshift_logging_fluentd/templates/fluentd.j2 index a5695ee26..d9814370f 100644 --- a/roles/openshift_logging_fluentd/templates/fluentd.j2 +++ b/roles/openshift_logging_fluentd/templates/fluentd.j2 @@ -98,9 +98,15 @@ spec: - name: "BUFFER_SIZE_LIMIT" value: "{{ openshift_logging_fluentd_buffer_size_limit }}" - name: "FLUENTD_CPU_LIMIT" - value: "{{ openshift_logging_fluentd_cpu_limit }}" + valueFrom: + resourceFieldRef: + containerName: "{{ daemonset_container_name }}" + resource: limits.cpu - name: "FLUENTD_MEMORY_LIMIT" - value: "{{ openshift_logging_fluentd_memory_limit }}" + valueFrom: + resourceFieldRef: + containerName: "{{ daemonset_container_name }}" + resource: limits.memory volumes: - name: runlogjournal hostPath: |