elasticsearch.yml.j2 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. cluster:
  2. name: ${CLUSTER_NAME}
  3. script:
  4. inline: on
  5. indexed: on
  6. index:
  7. number_of_shards: 1
  8. number_of_replicas: 0
  9. auto_expand_replicas: 0-2
  10. unassigned.node_left.delayed_timeout: 2m
  11. translog:
  12. flush_threshold_size: 256mb
  13. flush_threshold_period: 5m
  14. node:
  15. master: ${IS_MASTER}
  16. data: ${HAS_DATA}
  17. network:
  18. host: 0.0.0.0
  19. cloud:
  20. kubernetes:
  21. service: ${SERVICE_DNS}
  22. namespace: ${NAMESPACE}
  23. discovery:
  24. type: kubernetes
  25. zen.ping.multicast.enabled: false
  26. gateway:
  27. expected_master_nodes: ${NODE_QUORUM}
  28. recover_after_nodes: ${RECOVER_AFTER_NODES}
  29. expected_nodes: ${RECOVER_EXPECTED_NODES}
  30. recover_after_time: ${RECOVER_AFTER_TIME}
  31. io.fabric8.elasticsearch.authentication.users: ["system.logging.kibana", "system.logging.fluentd", "system.logging.curator", "system.admin"]
  32. openshift.config:
  33. use_common_data_model: true
  34. project_index_prefix: "project"
  35. time_field_name: "@timestamp"
  36. openshift.searchguard:
  37. keystore.path: /etc/elasticsearch/secret/admin.jks
  38. truststore.path: /etc/elasticsearch/secret/searchguard.truststore
  39. openshift.operations.allow_cluster_reader: {{allow_cluster_reader | default ('false')}}
  40. path:
  41. data: /elasticsearch/persistent/${CLUSTER_NAME}/data
  42. logs: /elasticsearch/${CLUSTER_NAME}/logs
  43. work: /elasticsearch/${CLUSTER_NAME}/work
  44. scripts: /elasticsearch/${CLUSTER_NAME}/scripts
  45. searchguard:
  46. authcz.admin_dn:
  47. - CN=system.admin,OU=OpenShift,O=Logging
  48. config_index_name: ".searchguard.${HOSTNAME}"
  49. ssl:
  50. transport:
  51. enabled: true
  52. enforce_hostname_verification: false
  53. keystore_type: JKS
  54. keystore_filepath: /etc/elasticsearch/secret/searchguard.key
  55. keystore_password: kspass
  56. truststore_type: JKS
  57. truststore_filepath: /etc/elasticsearch/secret/searchguard.truststore
  58. truststore_password: tspass
  59. http:
  60. enabled: true
  61. keystore_type: JKS
  62. keystore_filepath: /etc/elasticsearch/secret/key
  63. keystore_password: kspass
  64. clientauth_mode: OPTIONAL
  65. truststore_type: JKS
  66. truststore_filepath: /etc/elasticsearch/secret/truststore
  67. truststore_password: tspass