Skip to content

activator's PDB creates with no disruptionsAllowed when there are a few replicas #376

Closed

Description

@nak3

Since knative/serving@591510c was introduced, activator's PDB has 80% and operator includes the PDB without any change.
PDB 80% creates with zero disruptionsAllowed even if we have 2 or some replicas, so it will block an eviction.

e.g. Even 2 activator replicas, disruptionsAllowed is zero.

spec:
  minAvailable: 80%
  selector:
    matchLabels:
      app: activator
status:
  currentHealthy: 2
  desiredHealthy: 2
  disruptionsAllowed: 0
  expectedPods: 2
  observedGeneration: 1

The users who installed Knaative by operator cannot modify the PDB so operator should manage the PDB well or document this HA restriction.

Activity

  1. added
    kind/bug
    on Dec 3, 2020
  2. nak3 commented on Dec 3, 2020

    @nak3
    ContributorAuthor
  3. github-actions commented on Mar 4, 2021

    @github-actions
    Contributor

    This issue is stale because it has been open for 90 days with no
    activity. It will automatically close after 30 more days of
    inactivity. Reopen the issue with /reopen. Mark the issue as
    fresh by adding the comment /remove-lifecycle stale.

  4. added
    lifecycle/stale
    on Mar 4, 2021
  5. Fabian-K commented on Mar 15, 2021

    @Fabian-K

    Because the PDB cannot be configured using the operator, currently the only way to get 1 allowed disruption is to run 5 replicas. Do you consider making this configurable or changing the PDB itself?

  6. removed
    lifecycle/stale
    on Mar 16, 2021
  7. marcomancini1994 commented on Apr 6, 2021

    @marcomancini1994

    We are actually facing the same issue when using the Knative Operator, are you guys planning to release this feature in the next release? (e.g 0.23.0)

  8. matzew commented on Apr 28, 2021

    @matzew
    Member

    The same is true for eventing, not just the serving PDB.

  9. matzew commented on Apr 28, 2021

    @matzew
    Member
  10. Morriz commented on Jul 3, 2021

    @Morriz

    bump

  11. treyhyde commented on Aug 6, 2021

    @treyhyde

    I have really struggled with this one. Finally buckled down and added the 5 replicas so I could actually shut things down without manual intervention only to discover that cluster-autoscaler.kubernetes.io/safe-to-evict: "false" is sprinkled everywhere. Is there documentation somewhere suggesting why this stuff isn't safe to evict?

  12. nak3 commented on Aug 24, 2021

    @nak3
    ContributorAuthor

    I think this issue should be fixed before Beta/GA. There are some options for the solutions like:

    • option-1. Support fully customizable pdb.
    • option-2. Support only enable or disable option for pdb.
    • option-3. Do not include pdb manifest at all.
    • option-4. Support "automatic" pdb based on the number of replicas.

    Probably option-2 (like spec.high-availability) or option-1 would be alright?

  13. treyhyde commented on Aug 26, 2021

    @treyhyde

    option 1 seems like a good path, but frankly, a more reasonable default would go a long way. (minAvailable: 1 or maxDisruptions: 1)

  14. peteroruba commented on Oct 27, 2021

    @peteroruba

    We are also stuck with this issue when it comes to replacing worker nodes.

  15. bartusz01 commented on Nov 18, 2021

    @bartusz01

    hi @nak3 any update on this?

  16. Legion2 commented on Nov 18, 2021

    @Legion2

    Instead of using minAvailable 80% I use maxUnavailable 20%, which works with 2 replicas

  17. nak3 commented on Nov 19, 2021

    @nak3
    ContributorAuthor

    @bartusz01 No, I'm not working on it.

  18. isaac88 commented on Mar 2, 2022

    @isaac88

    Hello @nak3 @matzew @julz,
    Do you have the ETA for that ?
    Best regards.

  19. nak3 commented on Mar 2, 2022

    @nak3
    ContributorAuthor

    @isaac88 Sorry I am not working on it so I have no idea.

  20. github-actions commented on Jun 1, 2022

    @github-actions
    Contributor

    This issue is stale because it has been open for 90 days with no
    activity. It will automatically close after 30 more days of
    inactivity. Reopen the issue with /reopen. Mark the issue as
    fresh by adding the comment /remove-lifecycle stale.

  21. added
    lifecycle/stale
    on Jun 1, 2022
  22. Morriz commented on Jun 2, 2022

    @Morriz

    bump

  23. removed
    lifecycle/stale
    on Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions