Skip to content

Missing NodeSelector or Affinity support in the Pravega-Operator helm chart #640

@jensjohansen

Description

@jensjohansen

Description

Our k8s cluster has both ARM and AMD X86 processors, so we need either affinity: {} or nodeSelector:{} to work in the helm chart for Pravega Operator.

Importance

Blocker

Location

templates/operator.yaml needs to include the same affinity support that the Pravega/Zookeeper-operator has.

Suggestions for an improvement

Add the following code at about line 21 in templates/operator.yaml

      {{- if .Values.nodeSelector }}
      nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
      {{- end }}
      {{- if .Values.affinity }}
      affinity:
{{ toYaml .Values.affinity | indent 8 }}
      {{- end }}
      {{- if .Values.tolerations }}
      tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
      {{- end }}

And add the empty place holders around line 18 in values.yaml:

# Scheduling constraints
nodeSelector: {}
affinity: {}
tolerations: []

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions