Add initContainers & ES_JAVA_OPTS to enable 5.5.1
This commit is contained in:
parent
0e24327e10
commit
8ec350e2fd
|
@ -12,13 +12,21 @@ spec:
|
|||
component: elasticsearch
|
||||
spec:
|
||||
serviceAccount: elasticsearch
|
||||
initContainers:
|
||||
- name: init-sysctl
|
||||
image: busybox
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: ["sysctl", "-w", "vm.max_map_count=262144"]
|
||||
securityContext:
|
||||
privileged: true
|
||||
containers:
|
||||
- name: es
|
||||
securityContext:
|
||||
privileged: true
|
||||
capabilities:
|
||||
add:
|
||||
- IPC_LOCK
|
||||
image: quay.io/pires/docker-elasticsearch-kubernetes:1.7.1-4
|
||||
image: quay.io/pires/docker-elasticsearch-kubernetes:5.5.1
|
||||
env:
|
||||
- name: KUBERNETES_CA_CERTIFICATE_FILE
|
||||
value: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
||||
|
@ -36,6 +44,8 @@ spec:
|
|||
value: "true"
|
||||
- name: HTTP_ENABLE
|
||||
value: "true"
|
||||
- name: "ES_JAVA_OPTS"
|
||||
value: "-Xms256m -Xmx256m"
|
||||
ports:
|
||||
- containerPort: 9200
|
||||
name: http
|
||||
|
|
Loading…
Reference in New Issue