forked from deckhouse/yandex-csi-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
csi-controller.yaml
100 lines (99 loc) · 2.62 KB
/
csi-controller.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
kind: StatefulSet
apiVersion: apps/v1
metadata:
name: csi-controller
namespace: kube-system
spec:
serviceName: dummy
replicas: 1
selector:
matchLabels:
app: csi-controller
template:
metadata:
labels:
app: csi-controller
spec:
tolerations:
- operator: Exists
serviceAccountName: csi-controller
containers:
- name: csi-provisioner
image: quay.io/k8scsi/csi-provisioner:v1.6.0
args:
- "--v=5"
- "--csi-address=/csi/csi.sock"
- "--feature-gates=Topology=true"
- "--strict-topology"
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: csi-attacher
image: quay.io/k8scsi/csi-attacher:v2.2.0
args:
- "--v=5"
- "--csi-address=/csi/csi.sock"
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: csi-resizer
image: quay.io/k8scsi/csi-resizer:v1.1.0
args:
- "--v=5"
- "--csi-address=/csi/csi.sock"
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: csi-snapshotter
image: quay.io/k8scsi/csi-snapshotter:v2.1.1
args:
- "--v=5"
- "--csi-address=/csi/csi.sock"
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: csi-controller
image: registry.deckhouse.io/yandex-csi-driver/yandex-csi-driver:v0.9.11
args:
- "--address=$(MY_POD_IP):12302"
- "--endpoint=unix:/csi/csi.sock"
- "--folder-id=$(YANDEX_FOLDER_ID)"
ports:
- name: healthz
containerPort: 12302
protocol: TCP
env:
- name: MY_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: YANDEX_AUTH_KEYS
valueFrom:
secretKeyRef:
name: csi-credentials
key: serviceAccountJSON
- name: YANDEX_FOLDER_ID
valueFrom:
secretKeyRef:
name: csi-credentials
key: cloudFolderID
readinessProbe:
httpGet:
path: /health
port: 12302
initialDelaySeconds: 10
periodSeconds: 15
volumeMounts:
- name: socket-dir
mountPath: /csi
- name: liveness-probe
image: quay.io/k8scsi/livenessprobe:v2.0.0
args:
- --csi-address=/csi/csi.sock
volumeMounts:
- name: socket-dir
mountPath: /csi
volumes:
- name: socket-dir
emptyDir: {}