github.com/replicatedhq/ship@v0.55.0/integration/unfork/elastic-stack/expected/base/charts/elasticsearch/templates/client-deployment.yaml (about) 1 --- 2 # Source: elastic-stack/charts/elasticsearch/templates/client-deployment.yaml 3 apiVersion: apps/v1beta1 4 kind: Deployment 5 metadata: 6 labels: 7 app: elasticsearch 8 chart: elasticsearch-1.16.0 9 component: "client" 10 heritage: Tiller 11 release: elastic-stack 12 name: elastic-stack-elasticsearch-client 13 spec: 14 replicas: 2 15 template: 16 metadata: 17 labels: 18 app: elasticsearch 19 component: "client" 20 release: elastic-stack 21 spec: 22 serviceAccountName: elastic-stack-elasticsearch-client 23 securityContext: 24 fsGroup: 1000 25 affinity: 26 podAntiAffinity: 27 preferredDuringSchedulingIgnoredDuringExecution: 28 - weight: 1 29 podAffinityTerm: 30 topologyKey: kubernetes.io/hostname 31 labelSelector: 32 matchLabels: 33 app: "elasticsearch" 34 release: "elastic-stack" 35 component: "client" 36 initContainers: 37 # see https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html 38 # and https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration-memory.html#mlockall 39 - name: "sysctl" 40 image: "busybox:latest" 41 imagePullPolicy: "Always" 42 resources: 43 {} 44 45 command: ["sysctl", "-w", "vm.max_map_count=262144"] 46 securityContext: 47 privileged: true 48 containers: 49 - name: elasticsearch 50 env: 51 - name: NODE_DATA 52 value: "false" 53 - name: NODE_MASTER 54 value: "false" 55 - name: DISCOVERY_SERVICE 56 value: elastic-stack-elasticsearch-discovery 57 - name: PROCESSORS 58 valueFrom: 59 resourceFieldRef: 60 resource: limits.cpu 61 - name: ES_JAVA_OPTS 62 value: "-Djava.net.preferIPv4Stack=true -Xms512m -Xmx512m " 63 - name: MINIMUM_MASTER_NODES 64 value: "2" 65 resources: 66 limits: 67 cpu: "1" 68 requests: 69 cpu: 25m 70 memory: 512Mi 71 72 readinessProbe: 73 httpGet: 74 path: /_cluster/health 75 port: 9200 76 initialDelaySeconds: 5 77 livenessProbe: 78 httpGet: 79 path: /_cluster/health?local=true 80 port: 9200 81 initialDelaySeconds: 90 82 image: "docker.elastic.co/elasticsearch/elasticsearch-oss:6.5.4" 83 imagePullPolicy: "IfNotPresent" 84 ports: 85 - containerPort: 9200 86 name: http 87 - containerPort: 9300 88 name: transport 89 volumeMounts: 90 - mountPath: /usr/share/elasticsearch/config/elasticsearch.yml 91 name: config 92 subPath: elasticsearch.yml 93 volumes: 94 - name: config 95 configMap: 96 name: elastic-stack-elasticsearch