diff --git a/deploy/kubernetes/attacher.yaml b/deploy/kubernetes/attacher.yaml index 06a8be1..b27356c 100644 --- a/deploy/kubernetes/attacher.yaml +++ b/deploy/kubernetes/attacher.yaml @@ -84,6 +84,13 @@ spec: - operator: Exists effect: NoExecute tolerationSeconds: 300 + affinity: + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchLabels: + app: csi-provisioner-s3 + topologyKey: kubernetes.io/hostname containers: - name: csi-attacher image: quay.io/k8scsi/csi-attacher:v3.0.1 diff --git a/deploy/kubernetes/provisioner.yaml b/deploy/kubernetes/provisioner.yaml index 9c67eda..7b18dbe 100644 --- a/deploy/kubernetes/provisioner.yaml +++ b/deploy/kubernetes/provisioner.yaml @@ -56,6 +56,8 @@ kind: StatefulSet apiVersion: apps/v1 metadata: name: csi-provisioner-s3 + labels: + app: csi-provisioner-s3 namespace: kube-system spec: serviceName: "csi-provisioner-s3"