Skip to content

[Bug]: KubeStatefulSetUpdateNotRolledOut many-to-many matching not allowed #1092

@sebastiangaiser

Description

@sebastiangaiser

What happened?

Hey, during draining/rebooting nodes, I got msg="Evaluating rule failed" with many-to-many matching not allowed: matching labels must be unique on one side" for name=KubeStatefulSetUpdateNotRolledOut.

The only difference for the labels I could identify are:

instance="10.24.6.180:8080", pod="kube-state-metrics-558bb6b875-d78dr"}
instance="10.24.12.189:8080", pod="kube-state-metrics-784968c8d7-rcrl4"}

I think this is because kube-state-metrics was restarted during the node drain.
My proposal would be excluding the instance and pod label.

Please provide any helpful snippets.

What parts of the codebase are affected?

Alerts

I agree to the following terms:

  • I agree to follow this project's Code of Conduct.
  • I have filled out all the required information above to the best of my ability.
  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have confirmed this bug exists in the default branch of the repository, as of the latest commit at the time of submission.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingkeepaliveUse to prevent automatic closing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions