main.yaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ---
  2. # descheduler common setup
  3. openshift_descheduler_install: false
  4. openshift_descheduler_tmp_location: /tmp
  5. openshift_descheduler_delete_config: true
  6. # descheduler image setup
  7. openshift_descheduler_image_dict:
  8. origin:
  9. search: "${component}"
  10. version: v0.5.0
  11. openshift-enterprise:
  12. search: "${component}"
  13. version: "{{ openshift_image_tag }}"
  14. l_os_descheduler_image_search: "{{ openshift_descheduler_image_dict[openshift_deployment_type]['search'] }}"
  15. openshift_descheduler_image_version: "{{ openshift_descheduler_image_dict[openshift_deployment_type]['version'] }}"
  16. l_os_non_standard_reg_url: "{{ oreg_url | default(l_osm_registry_url_default) }}"
  17. l_os_descheduler_image: "{{ l_os_non_standard_reg_url | regex_replace('${version}' | regex_escape, openshift_descheduler_image_version) }}"
  18. openshift_descheduler_image: "{{ l_os_descheduler_image | regex_replace(l_os_descheduler_image_search | regex_escape, 'descheduler') }}"
  19. # descheduler service account setup
  20. openshift_descheduler_service_account: descheduler-sa
  21. # descheduler cluster role setup
  22. openshift_descheduler_cluster_role_name: descheduler-cr
  23. # descheduler policy setup
  24. # by default only RemoveDuplicates strategy is enabled
  25. openshift_descheduler_policy_configmap_name: descheduler-policy-configmap
  26. openshift_descheduler_strategies_dict:
  27. remove_duplicates: true
  28. remove_pods_violating_inter_pod_anti_affinity: false
  29. low_node_utilization: false
  30. # descheduler stratgey LowNodeUtilization setup (matters only if low_node_utilization is true)
  31. openshift_descheduler_strategy_low_node_utilization_dict:
  32. cpu_threshold: 40
  33. mem_threshold: 40
  34. pods_threshold: 40
  35. cpu_target_threshold: 70
  36. mem_target_threshold: 70
  37. pods_target_threshold: 70
  38. # descheduler cronjob setup
  39. openshift_descheduler_cronjob_name: descheduler-cronjob
  40. openshift_descheduler_cronjob_node_selector: {"type": "infra"}
  41. # by default (00:00) everyday
  42. openshift_descheduler_cronjob_schedule: "*/1 0 * * *"
  43. # descheduler container setup
  44. openshift_descheduler_dry_run_mode: true
  45. openshift_descheduler_node_selectors: null
  46. openshift_descheduler_debug_level: "{{ debug_level | default(2) }}"