2017-10-24 13:57:42 +00:00
|
|
|
apiVersion: apps/v1beta1
|
2017-11-26 20:25:57 +00:00
|
|
|
kind: Deployment
|
2017-10-24 13:57:42 +00:00
|
|
|
metadata:
|
|
|
|
name: zammad-elasticsearch
|
|
|
|
namespace: zammad
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
component: searchindex
|
|
|
|
app: elasticsearch
|
|
|
|
spec:
|
|
|
|
terminationGracePeriodSeconds: 10
|
|
|
|
volumes:
|
|
|
|
- name: zammad-elasticsearch
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: zammad-elasticsearch
|
2017-11-26 20:25:57 +00:00
|
|
|
|
2017-11-19 09:22:32 +00:00
|
|
|
initContainers:
|
|
|
|
- name: sysctl
|
|
|
|
image: busybox
|
|
|
|
command: ["sysctl", "-w", "vm.max_map_count=262144"]
|
|
|
|
securityContext:
|
2017-11-20 22:59:01 +00:00
|
|
|
privileged: true
|
2017-11-26 20:25:57 +00:00
|
|
|
|
2017-10-24 13:57:42 +00:00
|
|
|
containers:
|
|
|
|
- name: zammad-elasticsearch
|
2017-11-26 20:25:57 +00:00
|
|
|
image: monotek/zammad-docker-compose:zammad-elasticsearch
|
2017-10-24 13:57:42 +00:00
|
|
|
ports:
|
2017-11-26 20:25:57 +00:00
|
|
|
- name: elasticsearch
|
|
|
|
containerPort: 9200
|
2017-10-24 13:57:42 +00:00
|
|
|
imagePullPolicy: Always
|
|
|
|
volumeMounts:
|
2017-11-26 20:25:57 +00:00
|
|
|
- name: zammad-elasticsearch
|
|
|
|
mountPath: /usr/share/elasticsearch/data
|