File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed
Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 11apiVersion : v2
22type : library
33name : deckhouse_lib_helm
4- version : 1.22 .0
4+ version : 1.23 .0
55description : " Helm utils template definitions for Deckhouse modules."
Original file line number Diff line number Diff line change 44
55| Table of contents |
66| ---|
7+ | ** Enable Ds Eviction** |
8+ | [ helm_lib_ds_eviction_annotation] ( #helm_lib_ds_eviction_annotation ) |
79| ** Envs For Proxy** |
810| [ helm_lib_envs_for_proxy] ( #helm_lib_envs_for_proxy ) |
911| ** High Availability** |
102104| [ helm_lib_deployment_on_master_custom_strategy_and_replicas_for_ha] ( #helm_lib_deployment_on_master_custom_strategy_and_replicas_for_ha ) |
103105| [ helm_lib_deployment_strategy_and_replicas_for_ha] ( #helm_lib_deployment_strategy_and_replicas_for_ha ) |
104106
107+ ## Enable Ds Eviction
108+
109+ ### helm_lib_ds_eviction_annotation
110+
111+ Adds ` cluster-autoscaler.kubernetes.io/enable-ds-eviction ` annotation to manage DaemonSet eviction by the Cluster Autoscaler.
112+ This is important to prevent the eviction of DaemonSet pods during cluster scaling.
113+
114+ #### Usage
115+
116+ ` {{ include "helm_lib_ds_eviction_annotation" . }} `
117+
118+
105119## Envs For Proxy
106120
107121### helm_lib_envs_for_proxy
Original file line number Diff line number Diff line change 1+ { {- /* Usage: {{ include " helm_lib_ds_eviction_annotation" . } } */ -}}
2+ { {- /* Adds `cluster-autoscaler.kubernetes.io/enable-ds-eviction` annotation to manage DaemonSet eviction by the Cluster Autoscaler. */ -} }
3+ { {- /* This is important to prevent the eviction of DaemonSet pods during cluster scaling. */ -} }
4+ { {- define " helm_lib_ds_eviction_annotation" -} }
5+ { {- $enableEviction := default " false" (index . 1) } }
6+ cluster-autoscaler.kubernetes.io/enable-ds-eviction: "{ { $enableEviction } }"
7+ { {- end } }
You can’t perform that action at this time.
0 commit comments