Skip to content
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

Specific nodeAffinity to only primary #157

Open
bastoune opened this issue Jun 12, 2023 · 1 comment
Open

Specific nodeAffinity to only primary #157

bastoune opened this issue Jun 12, 2023 · 1 comment

Comments

@bastoune
Copy link

bastoune commented Jun 12, 2023

Hello,

Hi would like to update the Kubegres statefulSet, but only the primary one.
Is it possible from the kubegres.reactive-tech.io/v1 resource ?

Basically, i would like to apply this spec:

      affinity:
        nodeAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - weight: 1
            preference:
              matchExpressions:
              - key: k8s.scaleway.com/dedicated-cpu
                operator: In
                values:
                - "true"

I want to keep the fact the replicats are in PodAntiAffinity with the Primary. But i want the primary to prefer being deployed on the k8s.scaleway.com/dedicated-cpu labelled node.

@alex-arica
Copy link
Member

Thank you for your message.

This feature is not available in Kubegres.

It is a good idea and it could be implemented.

We are very low in dev resources at the moment, if you manage to implement it I can approve the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants