deploy to node of provisioner runs

This commit is contained in:
amonhuang 2022-09-02 11:58:02 +08:00
parent b9f21a39ea
commit 81abdcff1d
2 changed files with 9 additions and 0 deletions

View file

@ -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

View file

@ -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"