Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: elasticsearch.k8s.elastic.co/v1alpha1
- kind: Elasticsearch
- metadata:
- name: elasticsearch-sample
- spec:
- version: 7.2.0
- updateStrategy:
- changeBudget:
- maxUnavailable: 1
- maxSurge: 1
- nodes:
- - name: masters
- config:
- # most Elasticsearch configuration parameters are possible to set, e.g:
- node.attr.attr_name: attr_value
- node.master: true
- node.data: false
- node.ingest: false
- node.ml: false
- podTemplate:
- metadata:
- labels:
- # additional labels for pods
- foo: bar
- spec:
- containers:
- - name: elasticsearch
- # specify resource limits and requests
- resources:
- limits:
- memory: 4Gi
- cpu: 1
- env:
- - name: ES_JAVA_OPTS
- value: "-Xms2g -Xmx2g"
- nodeCount: 1
- - name: nodes
- config:
- # most Elasticsearch configuration parameters are possible to set, e.g:
- node.attr.attr_name: attr_value
- node.master: false
- node.data: true
- node.ingest: true
- node.ml: true
- podTemplate:
- metadata:
- labels:
- # additional labels for pods
- foo: bar
- spec:
- containers:
- - name: elasticsearch
- # specify resource limits and requests
- resources:
- limits:
- memory: 4Gi
- cpu: 2
- env:
- - name: ES_JAVA_OPTS
- value: "-Xms2g -Xmx2g"
- nodeCount: 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement