elasticsearch.yml.j2 2.6 KB

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