main.yml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ---
  2. ### Common settings
  3. openshift_logging_elasticsearch_image_pull_secret: "{{ openshift_hosted_logging_image_pull_secret | default('') }}"
  4. openshift_logging_elasticsearch_namespace: logging
  5. l_openshift_elasticsearch_image_replace: "{{ (openshift_logging_es5_techpreview | bool) | ternary('logging-elasticsearch5', 'logging-elasticsearch') }}"
  6. openshift_logging_elasticsearch_image: "{{ l_os_registry_url | regex_replace(l_openshift_logging_search | regex_escape, l_openshift_elasticsearch_image_replace) }}"
  7. openshift_logging_elasticsearch_proxy_image: "{{ l2_os_logging_proxy_image }}"
  8. openshift_logging_elasticsearch_nodeselector: "{{ openshift_logging_es_nodeselector | default('') }}"
  9. openshift_logging_elasticsearch_cpu_limit: null
  10. openshift_logging_elasticsearch_cpu_request: "{{ openshift_logging_es_cpu_request | default('1000m') }}"
  11. openshift_logging_elasticsearch_memory_limit: "{{ openshift_logging_es_memory_limit | default('1Gi') }}"
  12. openshift_logging_elasticsearch_recover_after_time: "{{ openshift_logging_es_recover_after_time | default('5m') }}"
  13. openshift_logging_elasticsearch_replica_count: 1
  14. # ES deployment type
  15. openshift_logging_elasticsearch_deployment_type: "data-master"
  16. # ES deployment name
  17. openshift_logging_elasticsearch_deployment_name: ""
  18. # One of ['emptydir', 'pvc', 'hostmount']
  19. openshift_logging_elasticsearch_storage_type: "emptydir"
  20. # hostmount options
  21. openshift_logging_elasticsearch_hostmount_path: ""
  22. # pvc options
  23. # the name of the PVC we will bind to -- create it if it does not exist
  24. openshift_logging_elasticsearch_pvc_name: ""
  25. # required if the PVC does not already exist
  26. openshift_logging_elasticsearch_pvc_size: ""
  27. openshift_logging_elasticsearch_pvc_dynamic: false
  28. openshift_logging_elasticsearch_pvc_pv_selector: {}
  29. openshift_logging_elasticsearch_pvc_storage_class_name: ""
  30. openshift_logging_elasticsearch_pvc_access_modes: ['ReadWriteOnce']
  31. openshift_logging_elasticsearch_storage_group: ['65534']
  32. openshift_logging_es_pvc_prefix: "{{ openshift_hosted_logging_elasticsearch_pvc_prefix | default('logging-es') }}"
  33. # config the es plugin to write kibana index based on the index mode
  34. openshift_logging_elasticsearch_kibana_index_mode: 'unique'
  35. openshift_logging_elasticsearch_proxy_cpu_request: "100m"
  36. openshift_logging_elasticsearch_proxy_memory_limit: "64Mi"
  37. openshift_logging_elasticsearch_prometheus_sa: "system:serviceaccount:{{openshift_prometheus_namespace | default('openshift-metrics')}}:prometheus"
  38. # this is used to determine if this is an operations deployment or a non-ops deployment
  39. # simply used for naming purposes
  40. openshift_logging_elasticsearch_ops_deployment: false
  41. openshift_logging_elasticsearch_ops_allow_cluster_reader: false
  42. # openshift_logging_es_config is a hash to be merged into the defaults for the elasticsearch.yaml
  43. openshift_logging_es_config: {}
  44. openshift_logging_master_url: "https://kubernetes.default.svc.{{ openshift.common.dns_domain }}"
  45. openshift_logging_master_public_url: "{{ openshift_hosted_logging_master_public_url | default('https://' + openshift.common.public_hostname + ':' ~ openshift_master_api_port) }}"
  46. openshift_logging_es_host: logging-es
  47. openshift_logging_es_port: 9200
  48. openshift_logging_es_ca: /etc/fluent/keys/ca
  49. openshift_logging_es_client_cert: /etc/fluent/keys/cert
  50. openshift_logging_es_client_key: /etc/fluent/keys/key