summaryrefslogtreecommitdiffstats
path: root/kubernetes/log/templates
diff options
context:
space:
mode:
authormayankg2703 <mayank.gupta@amdocs.com>2018-01-18 16:58:09 +0000
committermayankg2703 <mayank.gupta@amdocs.com>2018-01-24 14:24:47 +0000
commitd21b8b6ae2c3acff0f640e7b3093d977ee402964 (patch)
treefeeb9f1e2cc2c6a65a4986ee30195ad336b46ea0 /kubernetes/log/templates
parenta5cc84e3e09c859ba1ad12fef70fa1af539355c1 (diff)
change in log config seg
Issue-ID: OOM-596 Change-Id: I0e6d3a05fec91ad5e9610342b4e4769ddb3f0f8f Signed-off-by: mayankg2703 <mayank.gupta@amdocs.com>
Diffstat (limited to 'kubernetes/log/templates')
-rw-r--r--kubernetes/log/templates/elasticsearch-deployment.yaml16
1 files changed, 12 insertions, 4 deletions
diff --git a/kubernetes/log/templates/elasticsearch-deployment.yaml b/kubernetes/log/templates/elasticsearch-deployment.yaml
index 74ab921834..bbf7260faa 100644
--- a/kubernetes/log/templates/elasticsearch-deployment.yaml
+++ b/kubernetes/log/templates/elasticsearch-deployment.yaml
@@ -18,9 +18,14 @@ spec:
spec:
initContainers:
- command:
- - sysctl
- - -w
- - vm.max_map_count=262144
+ - /bin/sh
+ - -c
+ - |
+ sysctl -w vm.max_map_count=262144
+ mkdir -p /logroot/elasticsearch/logs
+ mkdir -p /logroot/elasticsearch/data
+ chmod -R 777 /logroot/elasticsearch
+ chown -R root:root /logroot
env:
- name: NAMESPACE
valueFrom:
@@ -32,6 +37,9 @@ spec:
image: {{ .Values.image.es_bb }}
imagePullPolicy: {{ .Values.pullPolicy }}
name: init-sysctl
+ volumeMounts:
+ - name: elasticsearch-logs
+ mountPath: /logroot/
containers:
- name: elasticsearch
image: {{ .Values.image.elasticsearch}}
@@ -59,7 +67,7 @@ spec:
claimName: elasticsearch-db
- name: elasticsearch-logs
hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/elasticsearch/logs
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/
- name: elasticsearch-conf
configMap:
name: elasticsearch-configmap