-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added configuration for PodDisruptionBudget #161
Conversation
@wkloucek It would be nice if we could harmonise the app names between the values file and the name of the app in the metadata in the future. After this change the template I used for PDB generation could be reduced by one argument in the |
I addressed this in #164. Something we should definitely do early (since it's most likely a breaking change) |
I converted the PR to draft right now to avoid accidental merging. I will address #164 first. |
Ready for final review and merge. |
@d7oc wouldn't it make sense to add the PDB to all services? From the docs (https://kubernetes.io/docs/tasks/run-application/configure-pdb/): Single-instance Stateful Application: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise looks good
charts/ocis/templates/audit/pdb.yaml
Outdated
@@ -0,0 +1,2 @@ | |||
{{- include "ocis.appNames" (dict "scope" . "appName" "appNameAudit" "appNameSuffix" "") -}} | |||
{{ include "ocis.pdb" . }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some more no "Newline at end of file" files.
We can add it but as written in the statement the technical protection won't properly work there needs to be communication outside the Kubernetes environment. So to me the benefit is quite limited. And the downside I see is that people set this to 1 and start to wonder why the single-instance pods aren't updated. |
Fine for me. You're right some services' Deployment could be replaced by a StatefulSet (IDM, NATS, IDP; but we're not recommending to to use them anyways, so no priority). other services still wait to be scalable, see #15 |
Description
This PR adds the configuration for PodDisruptionBudget. It can be configured globally and/or overwrites by service/app.
Related Issue
Motivation and Context
Feature Request
How Has This Been Tested?
Tested with
helm template
and the following own values YAML:Types of changes
Checklist:
make docs
) and committed