Skip to content

Commit 7445a4c

Browse files
authored
Bump deploy new version 1.2.0
Bump deploy new version 1.2.0
2 parents d34f2d6 + a0a7489 commit 7445a4c

File tree

6 files changed

+433
-0
lines changed

6 files changed

+433
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ A Container Storage Interface Driver for Yandex Compute Disks.
99
|----------------|-----------------------|
1010
| v1.0.0 | 1.21+ |
1111
| v1.1.0 | 1.21+ |
12+
| v1.2.0 | 1.21+ |
1213

1314
## Install on a Kubernetes cluster
1415

deploy/v1.2.0/controller.yaml

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: yc-csi-controller
5+
labels:
6+
app: yc-csi-controller
7+
component: csi-controller
8+
tier: csi
9+
namespace: kube-system
10+
spec:
11+
replicas: 1
12+
selector:
13+
matchLabels:
14+
app: yc-csi-controller
15+
template:
16+
metadata:
17+
labels:
18+
app: yc-csi-controller
19+
spec:
20+
serviceAccountName: yc-csi-controller
21+
containers:
22+
- name: yc-csi-controller
23+
args:
24+
- --endpoint=$(ENDPOINT)
25+
- --folder-id=$(FOLDER_ID)
26+
- --logtostderr=true
27+
- --sa-key=$(SA_KEY)
28+
- --yc-api-endpoint=api.cloud.yandex.net:443
29+
env:
30+
- name: ENDPOINT
31+
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock
32+
- name: FOLDER_ID
33+
valueFrom:
34+
configMapKeyRef:
35+
name: yc-csi-config
36+
key: folderId
37+
- name: SA_KEY
38+
value: /etc/yc-disk-csi-driver/sa-key.json
39+
image: cr.yandex/crpsjg1coh47p81vh2lc/yc-csi-controller:v1.2.0
40+
resources: {}
41+
volumeMounts:
42+
- name: sa-key
43+
mountPath: "/etc/yc-disk-csi-driver"
44+
readOnly: true
45+
- name: socket-dir
46+
mountPath: /var/lib/csi/sockets/pluginproxy
47+
- name: log-directory
48+
mountPath: /var/log
49+
- name: csi-provisioner
50+
args:
51+
- --csi-address=$(ADDRESS)
52+
- --feature-gates=Topology=true
53+
- --leader-election-namespace=kube-system
54+
- --leader-election=true
55+
- --retry-interval-max=15s
56+
- --timeout=30s
57+
- --v=5
58+
env:
59+
- name: ADDRESS
60+
value: /var/lib/csi/sockets/pluginproxy/csi.sock
61+
image: registry.k8s.io/sig-storage/csi-provisioner:v5.2.0
62+
resources: {}
63+
volumeMounts:
64+
- mountPath: /var/lib/csi/sockets/pluginproxy
65+
name: socket-dir
66+
- mountPath: /var/log
67+
name: log-directory
68+
- name: csi-attacher
69+
command:
70+
- /csi-attacher
71+
- --csi-address=$(ADDRESS)
72+
- --leader-election-namespace=kube-system
73+
- --leader-election=true
74+
- --retry-interval-max=15s
75+
- --timeout=30s
76+
- --v=5
77+
env:
78+
- name: ADDRESS
79+
value: /var/lib/csi/sockets/pluginproxy/csi.sock
80+
image: registry.k8s.io/sig-storage/csi-attacher:v4.8.1
81+
resources: {}
82+
volumeMounts:
83+
- mountPath: /var/lib/csi/sockets/pluginproxy
84+
name: socket-dir
85+
- mountPath: /var/log
86+
name: log-directory
87+
- name: csi-liveness-probe
88+
command:
89+
- /livenessprobe
90+
- --csi-address=$(ADDRESS)
91+
- --health-port=9809
92+
- --v=5
93+
env:
94+
- name: ADDRESS
95+
value: /var/lib/csi/sockets/pluginproxy/csi.sock
96+
image: registry.k8s.io/sig-storage/livenessprobe:v2.15.0
97+
resources: {}
98+
volumeMounts:
99+
- mountPath: /var/lib/csi/sockets/pluginproxy
100+
name: socket-dir
101+
- mountPath: /var/log
102+
name: log-directory
103+
- name: csi-resizer
104+
command:
105+
- /csi-resizer
106+
- --csi-address=$(ADDRESS)
107+
- --leader-election-namespace=kube-system
108+
- --leader-election=true
109+
- --retry-interval-max=15s
110+
- --timeout=30s
111+
- --v=5
112+
env:
113+
- name: ADDRESS
114+
value: /var/lib/csi/sockets/pluginproxy/csi.sock
115+
image: registry.k8s.io/sig-storage/csi-resizer:v1.13.2
116+
volumeMounts:
117+
- mountPath: /var/lib/csi/sockets/pluginproxy
118+
name: socket-dir
119+
- mountPath: /var/log
120+
name: log-directory
121+
hostNetwork: true
122+
priorityClassName: system-cluster-critical
123+
volumes:
124+
- name: socket-dir
125+
emptyDir: {}
126+
- name: log-directory
127+
hostPath:
128+
path: /var/log
129+
type: DirectoryOrCreate
130+
- name: sa-key
131+
secret:
132+
secretName: yc-csi-sa-key
133+
items:
134+
- key: sa-key.json
135+
path: sa-key.json

deploy/v1.2.0/driver.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: storage.k8s.io/v1
2+
kind: CSIDriver
3+
metadata:
4+
name: disk-csi-driver.mks.ycloud.io
5+
spec:
6+
attachRequired: true
7+
podInfoOnMount: true

deploy/v1.2.0/node.yaml

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
kind: DaemonSet
2+
apiVersion: apps/v1
3+
metadata:
4+
name: yc-csi-node
5+
namespace: kube-system
6+
spec:
7+
selector:
8+
matchLabels:
9+
app: yc-csi-node
10+
template:
11+
metadata:
12+
labels:
13+
app: yc-csi-node
14+
spec:
15+
hostNetwork: true
16+
priorityClassName: system-node-critical
17+
tolerations:
18+
- key: CriticalAddonsOnly
19+
operator: Exists
20+
- effect: NoExecute
21+
operator: Exists
22+
- effect: NoSchedule
23+
operator: Exists
24+
containers:
25+
- name: yc-csi-node
26+
securityContext:
27+
privileged: true
28+
image: cr.yandex/crpsjg1coh47p81vh2lc/yc-csi-node:v1.2.0
29+
resources:
30+
requests:
31+
memory: 16Mi
32+
cpu: 5m
33+
limits:
34+
memory: 100Mi
35+
cpu: 100m
36+
args:
37+
- --endpoint=$(CSI_ENDPOINT)
38+
- --logtostderr
39+
- --v=5
40+
env:
41+
- name: CSI_ENDPOINT
42+
value: unix:/csi/csi.sock
43+
volumeMounts:
44+
- name: kubelet-dir
45+
mountPath: /var/lib/kubelet
46+
mountPropagation: "Bidirectional"
47+
- name: plugin-dir
48+
mountPath: /csi
49+
- name: device-dir
50+
mountPath: /dev
51+
ports:
52+
- name: healthz
53+
containerPort: 9808
54+
protocol: TCP
55+
livenessProbe:
56+
httpGet:
57+
path: /healthz
58+
port: healthz
59+
initialDelaySeconds: 10
60+
timeoutSeconds: 3
61+
periodSeconds: 10
62+
failureThreshold: 5
63+
- name: node-driver-registrar
64+
image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.13.0
65+
args:
66+
- --csi-address=$(ADDRESS)
67+
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
68+
- --v=5
69+
lifecycle:
70+
preStop:
71+
exec:
72+
command: ["/bin/sh", "-c", "rm -rf /registration/disk-csi-driver.mks.ycloud.io-reg.sock /csi/csi.sock"]
73+
env:
74+
- name: ADDRESS
75+
value: /csi/csi.sock
76+
- name: DRIVER_REG_SOCK_PATH
77+
value: /var/lib/kubelet/plugins/disk-csi-driver.mks.ycloud.io/csi.sock
78+
volumeMounts:
79+
- name: plugin-dir
80+
mountPath: /csi
81+
- name: registration-dir
82+
mountPath: /registration
83+
- name: liveness-probe
84+
image: registry.k8s.io/sig-storage/livenessprobe:v2.15.0
85+
args:
86+
- --csi-address=/csi/csi.sock
87+
- --health-port=9808
88+
volumeMounts:
89+
- name: plugin-dir
90+
mountPath: /csi
91+
volumes:
92+
- name: kubelet-dir
93+
hostPath:
94+
path: /var/lib/kubelet
95+
type: Directory
96+
- name: plugin-dir
97+
hostPath:
98+
path: /var/lib/kubelet/plugins/disk-csi-driver.mks.ycloud.io/
99+
type: DirectoryOrCreate
100+
- name: registration-dir
101+
hostPath:
102+
path: /var/lib/kubelet/plugins_registry/
103+
type: Directory
104+
- name: device-dir
105+
hostPath:
106+
path: /dev
107+
type: Directory

0 commit comments

Comments
 (0)