From 2da8ad396aab9283b126ddfbd458709375f6d90b Mon Sep 17 00:00:00 2001 From: Pete Birley Date: Mon, 10 Dec 2018 11:15:47 -0600 Subject: [PATCH] Memcached: Share container PID namespaces under docker This PS shares pid namespaces for containers in pods under docker, bringing running in this runtime inline with other runc based container backends, allowing the pause process in the pod to act as a reaper. Change-Id: I43bea4cd9e91f9d27a846879dfc329cfa26f8ee7 Signed-off-by: Pete Birley --- memcached/templates/deployment.yaml | 1 + .../templates/monitoring/prometheus/exporter-deployment.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/memcached/templates/deployment.yaml b/memcached/templates/deployment.yaml index 8237addb36..0606249526 100644 --- a/memcached/templates/deployment.yaml +++ b/memcached/templates/deployment.yaml @@ -43,6 +43,7 @@ spec: labels: {{ tuple $envAll "memcached" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} spec: + shareProcessNamespace: true serviceAccountName: {{ $rcControllerName | quote }} affinity: {{ tuple $envAll "memcached" "server" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }} diff --git a/memcached/templates/monitoring/prometheus/exporter-deployment.yaml b/memcached/templates/monitoring/prometheus/exporter-deployment.yaml index a182b292a0..8a477d94e9 100644 --- a/memcached/templates/monitoring/prometheus/exporter-deployment.yaml +++ b/memcached/templates/monitoring/prometheus/exporter-deployment.yaml @@ -40,6 +40,7 @@ spec: {{ tuple $envAll "prometheus_memcached_exporter" "exporter" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} namespace: {{ .Values.endpoints.prometheus_memcached_exporter.namespace }} spec: + shareProcessNamespace: true serviceAccountName: {{ $rcControllerName | quote }} nodeSelector: {{ .Values.labels.prometheus_memcached_exporter.node_selector_key }}: {{ .Values.labels.prometheus_memcached_exporter.node_selector_value | quote }}