diff --git a/manager/integration/deploy/backupstores/minio-backupstore.yaml b/manager/integration/deploy/backupstores/minio-backupstore.yaml index 398bc6a76..e6083d442 100644 --- a/manager/integration/deploy/backupstores/minio-backupstore.yaml +++ b/manager/integration/deploy/backupstores/minio-backupstore.yaml @@ -41,8 +41,16 @@ spec: labels: app: longhorn-test-minio spec: - nodeSelector: - node-role.kubernetes.io/control-plane: "true" + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: node-role.kubernetes.io/control-plane + operator: In + values: + - "true" + - "" tolerations: - key: "node-role.kubernetes.io/master" operator: "Exists" diff --git a/manager/integration/deploy/backupstores/nfs-backupstore.yaml b/manager/integration/deploy/backupstores/nfs-backupstore.yaml index 548cb7b88..04ca31c1f 100644 --- a/manager/integration/deploy/backupstores/nfs-backupstore.yaml +++ b/manager/integration/deploy/backupstores/nfs-backupstore.yaml @@ -14,8 +14,16 @@ spec: labels: app: longhorn-test-nfs spec: - nodeSelector: - node-role.kubernetes.io/control-plane: "true" + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: node-role.kubernetes.io/control-plane + operator: In + values: + - "true" + - "" tolerations: - key: "node-role.kubernetes.io/master" operator: "Exists"