added elasticsearch init container which sets sysctl vm.max_map_count
This commit is contained in:
parent
c32a7b74ff
commit
fbe685ee63
@ -20,6 +20,12 @@ spec:
|
|||||||
- name: zammad-elasticsearch
|
- name: zammad-elasticsearch
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: zammad-elasticsearch
|
claimName: zammad-elasticsearch
|
||||||
|
initContainers:
|
||||||
|
- name: sysctl
|
||||||
|
image: busybox
|
||||||
|
command: ["sysctl", "-w", "vm.max_map_count=262144"]
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
containers:
|
containers:
|
||||||
- name: zammad-elasticsearch
|
- name: zammad-elasticsearch
|
||||||
image: zammad/zammad-docker-compose:zammad-elasticsearch
|
image: zammad/zammad-docker-compose:zammad-elasticsearch
|
||||||
@ -29,4 +35,4 @@ spec:
|
|||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /usr/share/elasticsearch/data
|
- mountPath: /usr/share/elasticsearch/data
|
||||||
name: zammad-elasticsearch
|
name: zammad-elasticsearch
|
||||||
|
@ -17,9 +17,6 @@
|
|||||||
* minikube start --memory=4096 --cpus=2
|
* minikube start --memory=4096 --cpus=2
|
||||||
* minikube addons enable ingress
|
* minikube addons enable ingress
|
||||||
* echo "$(minikube ip) zammad.example.com" | sudo tee -a /etc/hosts
|
* echo "$(minikube ip) zammad.example.com" | sudo tee -a /etc/hosts
|
||||||
* minikube ssh
|
|
||||||
* su -
|
|
||||||
* sysctl -w vm.max_map_count=262144
|
|
||||||
* kubectl apply -f .
|
* kubectl apply -f .
|
||||||
* minikube dashboard
|
* minikube dashboard
|
||||||
* switch to namespace "zammad"
|
* switch to namespace "zammad"
|
||||||
|
Loading…
Reference in New Issue
Block a user