elasticsearch.yml.j2 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. openshift.kibana.index.mode: {{es_kibana_index_mode | default('unique')}}
  45. path:
  46. data: /elasticsearch/persistent/${CLUSTER_NAME}/data
  47. logs: /elasticsearch/${CLUSTER_NAME}/logs
  48. work: /elasticsearch/${CLUSTER_NAME}/work
  49. scripts: /elasticsearch/${CLUSTER_NAME}/scripts
  50. searchguard:
  51. authcz.admin_dn:
  52. - CN=system.admin,OU=OpenShift,O=Logging
  53. config_index_name: ".searchguard.${DC_NAME}"
  54. ssl:
  55. transport:
  56. enabled: true
  57. enforce_hostname_verification: false
  58. keystore_type: JKS
  59. keystore_filepath: /etc/elasticsearch/secret/searchguard.key
  60. keystore_password: kspass
  61. truststore_type: JKS
  62. truststore_filepath: /etc/elasticsearch/secret/searchguard.truststore
  63. truststore_password: tspass
  64. http:
  65. enabled: true
  66. keystore_type: JKS
  67. keystore_filepath: /etc/elasticsearch/secret/key
  68. keystore_password: kspass
  69. clientauth_mode: OPTIONAL
  70. truststore_type: JKS
  71. truststore_filepath: /etc/elasticsearch/secret/truststore
  72. truststore_password: tspass