Last active
September 30, 2019 11:55
-
-
Save barkbay/d1ee547d4f79bd9e76c5718ba269778f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-2 | |
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: 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment