-
Notifications
You must be signed in to change notification settings - Fork 460
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
Add support for PodDisruptionBudgets #2136
Comments
thanks for the request @JorTurFer Do you want to use |
I haven't tested properly the target allocator yet, but if it's something that requires HA, yes. I mean, I know that we can use affinities to prevent some scenarios, but we have to ensure that we have at least X instances of the collector working. That's why we needed the pdbs |
Do you see the request useful? I'm willing to implement (but obviously, I prefer to ask before rather than drafting a PR that never is merged xD) |
I am not well familiar with the concept perhaps @jaronoff97 ? I found this
https://kubernetes.io/docs/tasks/run-application/configure-pdb/#identify-an-application-to-protect otelcol CRD implements the scale subresource |
No no, I want to deploy a pdb for the generated deployment / statefulset. I mean, with this manifest: apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: sidecar-for-my-app
spec:
mode: deployment The operator generates a deployment for the collector. I want to generate also a PDB for that generated deployment, not for the CRD itself |
Hey @JorTurFer thanks for getting this going here :) Is there a reason we would do this in the operator and not just let users apply this themselves (that's what i do currently)? What pavol mentions is accurate in that if we were to do this in the operator we would want to do it the same way as how the hpa created by the operator works i.e. by targeting the scale subresource. |
oooh! got it. Actually that's better 😄 The reason for adding the pdb is that you can define all the resources within |
yeah makes sense! I think as long as we let it work with the collector in the same way as the HPA that would be great. I definitely would accept it! |
Nice! |
sounds great, thanks for taking this on 🙇 |
I think that I have already something to review :) |
Hey @JorTurFer, thanks for adding the feature! Is there a reason why the PDB hasn't been added for |
As I understood the TargetAllocator isn't critical and doesn't require HA (but maybe I'm wrong and we have to add it there too) |
Thanks for the explanation. From what I've understood, it is recommended to run at least 2 replicas of TA, so that it is also HA, see #2159 (comment) |
@cmergenthaler i think that's a valid concern – would you mind opening up another issue? I think there's reason here to do some more work to pipe these things better for user concerns. I'll add a discussion topic for our SIG meeting this week. |
@jaronoff97 done: #2261 |
Oh, I misunderstood the TA I guess. |
Although
sidecar
anddaemonset
don't allow pdb,deployment
andstatefulset
modes are workload types where pdbs make sense totally, as they are centralized workloads.Currently, we are using the collector helm chart because it supports pdbs but we'd like to use the operator for using
Target Allocator
, but the pdbs are a requirement for us.I think that adding support to pdbs is a good addition to the operator and I'm willing to contribute with the feature if you also agree with having it
The text was updated successfully, but these errors were encountered: