Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions deploy/kubernetes/csi-s3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,29 @@ spec:
effect: NoExecute
tolerationSeconds: 300
serviceAccount: csi-s3
initContainers:
- name: setup-fuse-device
image: alpine:3.22
securityContext:
privileged: true
command:
- sh
- -c
- |
set -eux
if [ -d /dev/fuse ]; then
echo "/dev/fuse is a directory, removing..."
rm -rf /dev/fuse
fi
if [ ! -e /dev/fuse ]; then
echo "Creating /dev/fuse..."
mknod /dev/fuse c 10 229
chmod 666 /dev/fuse
fi
ls -l /dev/fuse
volumeMounts:
- name: dev
mountPath: /dev
containers:
- name: driver-registrar
image: cr.yandex/crp9ftr22d26age3hulg/yandex-cloud/csi-s3/csi-node-driver-registrar:v1.2.0
Expand Down Expand Up @@ -113,9 +136,16 @@ spec:
hostPath:
path: /var/lib/kubelet/pods
type: Directory
- name: dev
hostPath:
path: /dev
type: Directory
- name: fuse-device
hostPath:
path: /dev/fuse
# Since it may not exist, we’ll specify it as a string first.
# In that case, it will be created as a directory, so we’ll convert it to a character device (CharDevice) in the initContainer to make it available for use in the subsequent containers.
# type: CharDevice
- name: systemd-control
hostPath:
path: /run/systemd
Expand Down