update es
parent
4e548d5e87
commit
518981ce33
|
@ -88,9 +88,12 @@ spec:
|
||||||
- name: init
|
- name: init
|
||||||
image: busybox
|
image: busybox
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["/bin/sh", "-c", "sysctl -w vm.max_map_count=262144"]
|
command: ["/bin/sh", "-c", "sysctl -w vm.max_map_count=262144;chown -R 1000:1000 /usr/share/elasticsearch/data"]
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
|
volumeMounts:
|
||||||
|
- name: elastic-dev
|
||||||
|
mountPath: /usr/share/elasticsearch/data
|
||||||
containers:
|
containers:
|
||||||
- name: elasticsearch
|
- name: elasticsearch
|
||||||
image: docker.elastic.co/elasticsearch/elasticsearch:8.8.0
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.8.0
|
||||||
|
|
|
@ -88,9 +88,12 @@ spec:
|
||||||
- name: init
|
- name: init
|
||||||
image: busybox
|
image: busybox
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["/bin/sh", "-c", "sysctl -w vm.max_map_count=262144"]
|
command: ["/bin/sh", "-c", "sysctl -w vm.max_map_count=262144;chown -R 1000:1000 /usr/share/elasticsearch/data"]
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
|
volumeMounts:
|
||||||
|
- name: elastic-dev
|
||||||
|
mountPath: /usr/share/elasticsearch/data
|
||||||
containers:
|
containers:
|
||||||
- name: elasticsearch
|
- name: elasticsearch
|
||||||
image: docker.elastic.co/elasticsearch/elasticsearch:8.8.0
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.8.0
|
||||||
|
@ -174,3 +177,4 @@ spec:
|
||||||
clusterIP: None
|
clusterIP: None
|
||||||
selector:
|
selector:
|
||||||
app: elastic
|
app: elastic
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue