From cded42e315879fffec0fce76234a350749d8be80 Mon Sep 17 00:00:00 2001 From: Alan Meadows Date: Wed, 30 Nov 2016 16:58:39 -0800 Subject: [PATCH] add environments necessary to memcache; bugfix rabbitmq configmap name --- memcached/templates/deployment.yaml | 10 ++++++++++ rabbitmq/templates/deployment.yaml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/memcached/templates/deployment.yaml b/memcached/templates/deployment.yaml index 35e20d904e..318425485f 100644 --- a/memcached/templates/deployment.yaml +++ b/memcached/templates/deployment.yaml @@ -16,6 +16,16 @@ spec: image: {{ .Values.images.memcached }} imagePullPolicy: Always env: + - name: INTERFACE_NAME + value: "eth0" + - name: POD_NAME + valueFrom: + fieldRef: + fieldPath: metadata.name + - name: NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace - name: COMMAND value: "memcached -v -p {{ .Values.network.port }} -U 0 -c 8192 -m 1024" ports: diff --git a/rabbitmq/templates/deployment.yaml b/rabbitmq/templates/deployment.yaml index 69bf410239..50b254cbf2 100644 --- a/rabbitmq/templates/deployment.yaml +++ b/rabbitmq/templates/deployment.yaml @@ -37,5 +37,5 @@ spec: - name: rabbitmq-emptydir mountPath: /var/lib/rabbitmq - mountPath: /tmp/start_rabbitmq.sh - name: start-rabbitmq + name: rabbitmq-bin subPath: start_rabbitmq.sh