Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. apiVersion: elasticsearch.k8s.elastic.co/v1alpha1
  2. kind: Elasticsearch
  3. metadata:
  4. name: elasticsearch-sample
  5. spec:
  6. version: 7.2.0
  7. updateStrategy:
  8. changeBudget:
  9. maxUnavailable: 1
  10. maxSurge: 1
  11. nodes:
  12. - name: masters
  13. config:
  14. # most Elasticsearch configuration parameters are possible to set, e.g:
  15. node.attr.attr_name: attr_value
  16. node.master: true
  17. node.data: false
  18. node.ingest: false
  19. node.ml: false
  20. podTemplate:
  21. metadata:
  22. labels:
  23. # additional labels for pods
  24. foo: bar
  25. spec:
  26. containers:
  27. - name: elasticsearch
  28. # specify resource limits and requests
  29. resources:
  30. limits:
  31. memory: 4Gi
  32. cpu: 1
  33. env:
  34. - name: ES_JAVA_OPTS
  35. value: "-Xms2g -Xmx2g"
  36. nodeCount: 1
  37. - name: nodes
  38. config:
  39. # most Elasticsearch configuration parameters are possible to set, e.g:
  40. node.attr.attr_name: attr_value
  41. node.master: false
  42. node.data: true
  43. node.ingest: true
  44. node.ml: true
  45. podTemplate:
  46. metadata:
  47. labels:
  48. # additional labels for pods
  49. foo: bar
  50. spec:
  51. containers:
  52. - name: elasticsearch
  53. # specify resource limits and requests
  54. resources:
  55. limits:
  56. memory: 4Gi
  57. cpu: 2
  58. env:
  59. - name: ES_JAVA_OPTS
  60. value: "-Xms2g -Xmx2g"
  61. nodeCount: 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement