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

pod anti affinity #201

Open
ifelsefi opened this issue Jan 19, 2022 · 0 comments
Open

pod anti affinity #201

ifelsefi opened this issue Jan 19, 2022 · 0 comments

Comments

@ifelsefi
Copy link

ifelsefi commented Jan 19, 2022

Hi

I would like to enable pod anti affinity so cockroach does not run on the same node.

This does not work:

  # nodeSelector is the simplest way to limit which kubernetes nodes will run the database-related pods
  # Please refer to the top-level description of nodeSelector for an example
  nodeSelector: {}
  # tolerations allows the database-related pods to run on tainted kubernetes nodes
  # Please refer to the top-level description of tolerations for an example
  tolerations: []
  # affinity provides more granular control of which kubernetes nodes will run the database-related pods
  # Please refer to the top-level description of affinity for an example
  affinity:
    podAntiAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
      - labelSelector:
        matchExpressions:
        - key: app
          operator: In
          values:
          - cockroachdb
        topologyKey: "kubernetes.io/hostname"

The error I get:

user@laptop[~/repos$ helm install pure-pso pure/pure-pso -n pure-pso -f values.yaml Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Deployment.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0]): unknown field "matchExpressions" in io.k8s.api.core.v1.PodAffinityTerm

Does the helm chart support this option?

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

1 participant