summaryrefslogtreecommitdiffstats
path: root/kubernetes/log/templates/elasticsearch-deployment.yaml
diff options
context:
space:
mode:
authorkiranya <kiran.yadav@amdocs.com>2017-11-22 13:40:04 +0000
committerkiranya <kiran.yadav@amdocs.com>2017-11-22 13:41:07 +0000
commit7a3182133295f8e0e8587e3b6ee3b9211072e5f2 (patch)
treee6efac8e4a5d632ff3f03a3dee76267b82ccc835 /kubernetes/log/templates/elasticsearch-deployment.yaml
parent1cee1a3eb985815da8d55ca7bcfa2bf3ac092d34 (diff)
Update annotations to spec for log
Issue-ID: OOM-406 Change-Id: I3930ef30db5f63c26798027c6b43b83f7db3f7d9 Signed-off-by: kiranya <kiran.yadav@amdocs.com>
Diffstat (limited to 'kubernetes/log/templates/elasticsearch-deployment.yaml')
-rw-r--r--kubernetes/log/templates/elasticsearch-deployment.yaml39
1 files changed, 16 insertions, 23 deletions
diff --git a/kubernetes/log/templates/elasticsearch-deployment.yaml b/kubernetes/log/templates/elasticsearch-deployment.yaml
index c123df1daa..74ab921834 100644
--- a/kubernetes/log/templates/elasticsearch-deployment.yaml
+++ b/kubernetes/log/templates/elasticsearch-deployment.yaml
@@ -15,30 +15,23 @@ spec:
labels:
app: elasticsearch
name: elasticsearch
- annotations:
- pod.beta.kubernetes.io/init-containers: '[
- {
- "command": ["sysctl", "-w", "vm.max_map_count=262144"],
- "env": [
- {
- "name": "NAMESPACE",
- "valueFrom": {
- "fieldRef": {
- "apiVersion": "v1",
- "fieldPath": "metadata.namespace"
- }
- }
- }
- ],
- "securityContext": {
- "privileged": true
- },
- "image": "{{ .Values.image.es_bb }}",
- "imagePullPolicy": "{{ .Values.pullPolicy }}",
- "name": "init-sysctl"
- }
- ]'
spec:
+ initContainers:
+ - command:
+ - sysctl
+ - -w
+ - vm.max_map_count=262144
+ env:
+ - name: NAMESPACE
+ valueFrom:
+ fieldRef:
+ apiVersion: v1
+ fieldPath: metadata.namespace
+ securityContext:
+ privileged: true
+ image: {{ .Values.image.es_bb }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ name: init-sysctl
containers:
- name: elasticsearch
image: {{ .Values.image.elasticsearch}}