diff --git a/deploy/charts/ceph-csi-operator/templates/deployment.yaml b/deploy/charts/ceph-csi-operator/templates/deployment.yaml index 7c287747a..e79499434 100644 --- a/deploy/charts/ceph-csi-operator/templates/deployment.yaml +++ b/deploy/charts/ceph-csi-operator/templates/deployment.yaml @@ -58,4 +58,16 @@ spec: securityContext: {{- toYaml .Values.controllerManager.podSecurityContext | nindent 8 }} serviceAccountName: {{ include "ceph-csi-operator.fullname" . }}-controller-manager + {{- with .Values.controllerManager.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.controllerManager.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.controllerManager.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} terminationGracePeriodSeconds: 10 diff --git a/deploy/charts/ceph-csi-operator/values.yaml b/deploy/charts/ceph-csi-operator/values.yaml index 6a1608bdd..02bde3689 100644 --- a/deploy/charts/ceph-csi-operator/values.yaml +++ b/deploy/charts/ceph-csi-operator/values.yaml @@ -32,6 +32,9 @@ controllerManager: replicas: 1 serviceAccount: annotations: {} + nodeSelector: {} + tolerations: [] + affinity: {} imagePullSecrets: [] kubernetesClusterDomain: cluster.local nfsCtrlpluginSa: