zammad-docker-compose/kubernetes/44_deployment_elasticsearch.yaml
André Bauer ce696bad8b
added init container (installation / update)... (#2)
- added memcached container (currently develop branch needed)
- put all zammad services in one kubernetes pod to be able to use empty dir volume for tmp
- switched to kubernetes deployments
- switched to ReadWriteOnce kubernetes volume claims
- added init container to elasticsearch & zammad kubernetes deployments
- added IMAGE_REPO var for docker compose to .env file
- run nginx from zammad container (preparation for stateless updates)
- removed docker-compose-build.yml
- use private docker repos in compose & kubernetes
- change compose volume names
2017-11-26 21:25:57 +01:00

37 lines
909 B
YAML

apiVersion: apps/v1beta1
kind: Deployment
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
initContainers:
- name: sysctl
image: busybox
command: ["sysctl", "-w", "vm.max_map_count=262144"]
securityContext:
privileged: true
containers:
- name: zammad-elasticsearch
image: monotek/zammad-docker-compose:zammad-elasticsearch
ports:
- name: elasticsearch
containerPort: 9200
imagePullPolicy: Always
volumeMounts:
- name: zammad-elasticsearch
mountPath: /usr/share/elasticsearch/data