Skip to content

affinity in Values.app.affinity can't be used for podAntiAffinity #10301

@aldag75

Description

@aldag75

What happened?

If you want to use podAntiAffinity you need to set labelSelector properly. And the labelSelector has to be different for each deployment. This can't be done with shared section in Values.app,affinity. There should be "affinity" value separately for each deployment (api, auth, web, metricsScraper)

What did you expect to happen?

in Values add affinity section in each deployment part (api, auth, web, metricsScraper) and change the deployment templates

How can we reproduce it (as minimally and precisely as possible)?

affinity part is the same in all deployments

Anything else we need to know?

No response

What browsers are you seeing the problem on?

No response

Kubernetes Dashboard version

7.13.0

Kubernetes version

Client Version: v1.32.2 Kustomize Version: v5.5.0 Server Version: v1.32.6

Dev environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions