deploy attacher to node of provisioner runs
This commit is contained in:
parent
81abdcff1d
commit
0a18ff4d30
2 changed files with 12 additions and 1 deletions
deploy/helm/templates
|
@ -79,6 +79,13 @@ spec:
|
||||||
tolerations:
|
tolerations:
|
||||||
- key: node-role.kubernetes.io/master
|
- key: node-role.kubernetes.io/master
|
||||||
operator: "Exists"
|
operator: "Exists"
|
||||||
|
affinity:
|
||||||
|
podAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app: csi-provisioner-s3
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
containers:
|
containers:
|
||||||
- name: csi-attacher
|
- name: csi-attacher
|
||||||
image: {{ .Values.images.attacher }}
|
image: {{ .Values.images.attacher }}
|
||||||
|
|
|
@ -56,6 +56,8 @@ kind: StatefulSet
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: csi-provisioner-s3
|
name: csi-provisioner-s3
|
||||||
|
labels:
|
||||||
|
app: csi-provisioner-s3
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
spec:
|
spec:
|
||||||
serviceName: "csi-provisioner-s3"
|
serviceName: "csi-provisioner-s3"
|
||||||
|
@ -112,4 +114,6 @@ spec:
|
||||||
mountPath: /var/lib/kubelet/plugins/ru.yandex.s3.csi
|
mountPath: /var/lib/kubelet/plugins/ru.yandex.s3.csi
|
||||||
volumes:
|
volumes:
|
||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
emptyDir: {}
|
hostPath:
|
||||||
|
path: /var/lib/kubelet/plugins/ru.yandex.s3.csi
|
||||||
|
type: DirectoryOrCreate
|
||||||
|
|
Loading…
Add table
Reference in a new issue