github.com/replicatedhq/ship@v0.55.0/integration/unfork/elastic-stack/expected/overlays/ship/client-deployment.yaml (about) 1 apiVersion: apps/v1beta1 2 kind: Deployment 3 metadata: 4 labels: 5 app: elasticsearch 6 chart: elasticsearch-1.16.0 7 component: client 8 heritage: Tiller 9 release: elastic-stack 10 name: elastic-stack-elasticsearch-client 11 spec: 12 template: 13 metadata: 14 annotations: 15 checksum/config: 4f07b9e19327171c37a9c353906c75a1f454cd31c3dfc600a8882d6e36713c49 16 checksum/secret: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 17 spec: 18 $setElementOrder/containers: 19 - name: elasticsearch 20 $setElementOrder/initContainers: 21 - name: increase-memory-limits 22 containers: 23 - $setElementOrder/env: 24 - name: DISCOVERY_SERVICE 25 - name: NODE_DATA 26 - name: NODE_INGEST 27 - name: ES_HEAP_SIZE 28 - name: NODE_MASTER 29 - name: PROCESSORS 30 - name: ES_JAVA_OPTS 31 - name: MINIMUM_MASTER_NODES 32 $setElementOrder/volumeMounts: 33 - mountPath: /usr/share/elasticsearch/config/elasticsearch.yml 34 - mountPath: /usr/share/elasticsearch/config/log4j2.properties 35 env: 36 - name: DISCOVERY_SERVICE 37 value: elastic-stack-elasticsearch-master.default.svc.cluster.local 38 - name: NODE_INGEST 39 value: "false" 40 - name: ES_HEAP_SIZE 41 value: 512m 42 - name: ES_JAVA_OPTS 43 value: -Djava.net.preferIPv4Stack=true 44 image: gcr.io/cos-containers/elasticsearch:5.4.2-xpack 45 imagePullPolicy: Always 46 livenessProbe: 47 exec: 48 command: 49 - sh 50 - -c 51 - curl --request GET --silent --output /dev/null http://127.0.0.1:9200/_cluster/health?wait_for_status=yellow 52 httpGet: null 53 name: elasticsearch 54 readinessProbe: 55 exec: 56 command: 57 - sh 58 - -c 59 - curl --request GET --silent --output /dev/null http://127.0.0.1:9200/_cluster/health?wait_for_status=yellow 60 httpGet: null 61 volumeMounts: 62 - mountPath: /usr/share/elasticsearch/config/elasticsearch.yml 63 readOnly: true 64 - mountPath: /usr/share/elasticsearch/config/log4j2.properties 65 name: config 66 readOnly: true 67 subPath: log4j2.properties 68 initContainers: 69 - command: 70 - sh 71 - -c 72 - |- 73 # see https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html 74 # and https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration-memory.html#mlockall 75 # and https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode 76 sysctl -w vm.max_map_count=262144 77 # To increase the ulimit 78 # https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_notes_for_production_use_and_defaults 79 ulimit -l unlimited 80 image: busybox 81 name: increase-memory-limits 82 securityContext: 83 privileged: true 84 - $patch: delete 85 name: sysctl 86 serviceAccountName: elastic-stack-elasticsearch