helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

[loki-distributed] Add the possibility for setting maxUnavailable parameter for PDB

Open triceras opened this issue 3 years ago • 1 comments

Karpenter is unable to evict the loki pods because they have Pod Disruption Budget set. This behavior will prevent the nodes from deprovisioning. The easier way to overcome this issue is to allow the users to set a value for maxUnavailable. So if the user wants to disable the PDB for a certain loki pod he could do so by setting maxUnavailable=0.

triceras avatar Jun 07 '22 19:06 triceras

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

:white_check_mark: zanac1986
:white_check_mark: zanhsieh
:x: triceras
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Jun 15 '22 17:06 CLAassistant

@zanhsieh any reason we decided to use maxUnvailable versus just setting minAvailable defaults with conditional logic to say > 2 = minAvailable:1?

Aaron-ML avatar Aug 30 '22 23:08 Aaron-ML

@zanhsieh any reason we decided to use maxUnvailable versus just setting minAvailable defaults with conditional logic to say > 2 = minAvailable:1?

@Aaron-ML You are welcome to fire another PR to the value you think it reasonable.

zanhsieh avatar Aug 31 '22 12:08 zanhsieh

I don't understand this PR - the PR replaces all of the component-level settings with a single global setting burried under .Values.distributor. Why not follow the much more standard practice of allowing operators to define their own PDB:

{{- with .Values.$component.podDisruptionBudget }}
podDisruptionBudget:
  {{ toYaml . | nindent XX }}
{{- end }}

This PR seems flawed to me.. unless I am missing something here.

diranged avatar Sep 06 '22 14:09 diranged

There is no way to disable PDB if you wish to do so. There should be a way to disable PDB if the user wants to do so. PDB should be an optional setting instead of compulsory specially if using some autoscaler tool such as Karpenter.

On Tue, Sep 6, 2022 at 7:28 AM Matt Wise @.***> wrote:

I don't understand this PR - the PR replaces all of the component-level settings with a single global setting burried under .Values.distributor. Why not follow the much more standard practice of allowing operators to define their own PDB:

{{- with .Values.$component.podDisruptionBudget }}podDisruptionBudget: {{ toYaml . | nindent XX }}{{- end }}

This PR seems flawed to me.. unless I am missing something here.

— Reply to this email directly, view it on GitHub https://github.com/grafana/helm-charts/pull/1460#issuecomment-1238231198, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOO5VQVKJH3L72MPQ3OWVLV45IJBANCNFSM5YD7BNTQ You are receiving this because you authored thread.Message ID: @.***>

triceras avatar Sep 06 '22 15:09 triceras