elasticsearch.yml.j2 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. cluster:
  2. name: ${CLUSTER_NAME}
  3. script:
  4. inline: true
  5. stored: true
  6. node:
  7. name: ${DC_NAME}
  8. master: ${IS_MASTER}
  9. data: ${HAS_DATA}
  10. max_local_storage_nodes: 1
  11. network:
  12. host: 0.0.0.0
  13. cloud:
  14. kubernetes:
  15. service: ${SERVICE_DNS}
  16. namespace: ${NAMESPACE}
  17. discovery.zen:
  18. hosts_provider: kubernetes
  19. minimum_master_nodes: ${NODE_QUORUM}
  20. gateway:
  21. recover_after_nodes: ${NODE_QUORUM}
  22. expected_nodes: ${RECOVER_EXPECTED_NODES}
  23. recover_after_time: ${RECOVER_AFTER_TIME}
  24. io.fabric8.elasticsearch.kibana.mapping.app: /usr/share/elasticsearch/index_patterns/com.redhat.viaq-openshift.index-pattern.json
  25. io.fabric8.elasticsearch.kibana.mapping.ops: /usr/share/elasticsearch/index_patterns/com.redhat.viaq-openshift.index-pattern.json
  26. io.fabric8.elasticsearch.kibana.mapping.empty: /usr/share/elasticsearch/index_patterns/com.redhat.viaq-openshift.index-pattern.json
  27. openshift.config:
  28. use_common_data_model: true
  29. project_index_prefix: "project"
  30. time_field_name: "@timestamp"
  31. openshift.searchguard:
  32. keystore.path: /etc/elasticsearch/secret/admin.jks
  33. truststore.path: /etc/elasticsearch/secret/searchguard.truststore
  34. openshift.operations.allow_cluster_reader: {{allow_cluster_reader | default (false)}}
  35. openshift.kibana.index.mode: {{es_kibana_index_mode | default('unique')}}
  36. path:
  37. data: /elasticsearch/persistent/${CLUSTER_NAME}/data
  38. logs: /elasticsearch/${CLUSTER_NAME}/logs
  39. searchguard:
  40. authcz.admin_dn:
  41. - CN=system.admin,OU=OpenShift,O=Logging
  42. config_index_name: ".searchguard.${DC_NAME}"
  43. ssl:
  44. transport:
  45. enabled: true
  46. enforce_hostname_verification: false
  47. keystore_type: JKS
  48. keystore_filepath: /etc/elasticsearch/secret/searchguard.key
  49. keystore_password: kspass
  50. truststore_type: JKS
  51. truststore_filepath: /etc/elasticsearch/secret/searchguard.truststore
  52. truststore_password: tspass
  53. http:
  54. enabled: true
  55. keystore_type: JKS
  56. keystore_filepath: /etc/elasticsearch/secret/key
  57. keystore_password: kspass
  58. clientauth_mode: OPTIONAL
  59. truststore_type: JKS
  60. truststore_filepath: /etc/elasticsearch/secret/truststore
  61. truststore_password: tspass