elasticsearch.yml.j2 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. master: true
  15. data: true
  16. network:
  17. host: 0.0.0.0
  18. cloud:
  19. kubernetes:
  20. service: ${SERVICE_DNS}
  21. namespace: ${NAMESPACE}
  22. discovery:
  23. type: kubernetes
  24. zen.ping.multicast.enabled: false
  25. zen.minimum_master_nodes: {{es_min_masters}}
  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. io.fabric8.elasticsearch.kibana.mapping.app: /usr/share/elasticsearch/index_patterns/com.redhat.viaq-openshift.index-pattern.json
  33. io.fabric8.elasticsearch.kibana.mapping.ops: /usr/share/elasticsearch/index_patterns/com.redhat.viaq-openshift.index-pattern.json
  34. openshift.config:
  35. use_common_data_model: true
  36. project_index_prefix: "project"
  37. time_field_name: "@timestamp"
  38. openshift.searchguard:
  39. keystore.path: /etc/elasticsearch/secret/admin.jks
  40. truststore.path: /etc/elasticsearch/secret/searchguard.truststore
  41. openshift.operations.allow_cluster_reader: {{allow_cluster_reader | default (false)}}
  42. path:
  43. data: /elasticsearch/persistent/${CLUSTER_NAME}/data
  44. logs: /elasticsearch/${CLUSTER_NAME}/logs
  45. work: /elasticsearch/${CLUSTER_NAME}/work
  46. scripts: /elasticsearch/${CLUSTER_NAME}/scripts
  47. searchguard:
  48. authcz.admin_dn:
  49. - CN=system.admin,OU=OpenShift,O=Logging
  50. config_index_name: ".searchguard.${HOSTNAME}"
  51. ssl:
  52. transport:
  53. enabled: true
  54. enforce_hostname_verification: false
  55. keystore_type: JKS
  56. keystore_filepath: /etc/elasticsearch/secret/searchguard.key
  57. keystore_password: kspass
  58. truststore_type: JKS
  59. truststore_filepath: /etc/elasticsearch/secret/searchguard.truststore
  60. truststore_password: tspass
  61. http:
  62. enabled: true
  63. keystore_type: JKS
  64. keystore_filepath: /etc/elasticsearch/secret/key
  65. keystore_password: kspass
  66. clientauth_mode: OPTIONAL
  67. truststore_type: JKS
  68. truststore_filepath: /etc/elasticsearch/secret/truststore
  69. truststore_password: tspass