main.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. ---
  2. ### Common settings
  3. openshift_logging_elasticsearch_image_prefix: "{{ openshift_logging_image_prefix | default(__openshift_logging_image_prefix) }}"
  4. openshift_logging_elasticsearch_image_version: "{{ openshift_logging_image_version | default('latest') }}"
  5. openshift_logging_elasticsearch_image_pull_secret: "{{ openshift_hosted_logging_image_pull_secret | default('') }}"
  6. openshift_logging_elasticsearch_namespace: logging
  7. openshift_logging_elasticsearch_nodeselector: "{{ openshift_logging_es_nodeselector | default('') }}"
  8. openshift_logging_elasticsearch_cpu_limit: "{{ openshift_logging_es_cpu_limit | default('') }}"
  9. openshift_logging_elasticsearch_cpu_request: "{{ openshift_logging_es_cpu_request | default('1000m') }}"
  10. openshift_logging_elasticsearch_memory_limit: "{{ openshift_logging_es_memory_limit | default('1Gi') }}"
  11. openshift_logging_elasticsearch_recover_after_time: "{{ openshift_logging_es_recover_after_time | default('5m') }}"
  12. openshift_logging_elasticsearch_replica_count: 1
  13. # ES deployment type
  14. openshift_logging_elasticsearch_deployment_type: "data-master"
  15. # ES deployment name
  16. openshift_logging_elasticsearch_deployment_name: ""
  17. # One of ['emptydir', 'pvc', 'hostmount']
  18. openshift_logging_elasticsearch_storage_type: "emptydir"
  19. # hostmount options
  20. openshift_logging_elasticsearch_hostmount_path: ""
  21. # pvc options
  22. # the name of the PVC we will bind to -- create it if it does not exist
  23. openshift_logging_elasticsearch_pvc_name: ""
  24. # required if the PVC does not already exist
  25. openshift_logging_elasticsearch_pvc_size: ""
  26. openshift_logging_elasticsearch_pvc_dynamic: false
  27. openshift_logging_elasticsearch_pvc_pv_selector: {}
  28. openshift_logging_elasticsearch_pvc_storage_class_name: ""
  29. openshift_logging_elasticsearch_pvc_access_modes: ['ReadWriteOnce']
  30. openshift_logging_elasticsearch_storage_group: ['65534']
  31. openshift_logging_es_pvc_prefix: "{{ openshift_hosted_logging_elasticsearch_pvc_prefix | default('logging-es') }}"
  32. # config the es plugin to write kibana index based on the index mode
  33. openshift_logging_elasticsearch_kibana_index_mode: 'unique'
  34. openshift_logging_elasticsearch_proxy_cpu_request: "100m"
  35. openshift_logging_elasticsearch_proxy_memory_limit: "64Mi"
  36. openshift_logging_elasticsearch_prometheus_sa: "system:serviceaccount:{{openshift_prometheus_namespace | default('prometheus')}}:prometheus"
  37. # this is used to determine if this is an operations deployment or a non-ops deployment
  38. # simply used for naming purposes
  39. openshift_logging_elasticsearch_ops_deployment: false
  40. openshift_logging_elasticsearch_ops_allow_cluster_reader: false
  41. # following can be uncommented to provide values for configmaps -- take care when providing file contents as it may cause your cluster to not operate correctly
  42. #es_logging_contents:
  43. #es_config_contents:
  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 | default('8443', true))) }}"
  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