main.yml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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_access_modes: ['ReadWriteOnce']
  29. openshift_logging_elasticsearch_storage_group: ['65534']
  30. openshift_logging_es_pvc_prefix: "{{ openshift_hosted_logging_elasticsearch_pvc_prefix | default('logging-es') }}"
  31. # config the es plugin to write kibana index based on the index mode
  32. openshift_logging_elasticsearch_kibana_index_mode: 'unique'
  33. openshift_logging_elasticsearch_proxy_cpu_request: "100m"
  34. openshift_logging_elasticsearch_proxy_memory_limit: "64Mi"
  35. openshift_logging_elasticsearch_prometheus_sa: "system:serviceaccount:{{openshift_prometheus_namespace | default('prometheus')}}:prometheus"
  36. # this is used to determine if this is an operations deployment or a non-ops deployment
  37. # simply used for naming purposes
  38. openshift_logging_elasticsearch_ops_deployment: false
  39. openshift_logging_elasticsearch_ops_allow_cluster_reader: false
  40. # 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
  41. #es_logging_contents:
  42. #es_config_contents:
  43. openshift_logging_master_url: "https://kubernetes.default.svc.{{ openshift.common.dns_domain }}"
  44. openshift_logging_master_public_url: "{{ openshift_hosted_logging_master_public_url | default('https://' + openshift.common.public_hostname + ':' ~ (openshift_master_api_port | default('8443', true))) }}"
  45. openshift_logging_es_host: logging-es
  46. openshift_logging_es_port: 9200
  47. openshift_logging_es_ca: /etc/fluent/keys/ca
  48. openshift_logging_es_client_cert: /etc/fluent/keys/cert
  49. openshift_logging_es_client_key: /etc/fluent/keys/key