Skip to content

Commit fa00ffe

Browse files
committed
Use a hardlink for containerd.sock
Symlinks are not visible inside the plugin container
1 parent fe7a1bd commit fa00ffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

k8s-socketcan-daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
- -c
2424
- chroot /root/ modprobe vcan || { chroot /root/ apt-get install -y linux-modules-extra-$(uname -r) && chroot /root/ modprobe vcan; } && echo Succesfully installed and loaded the vcan kernel module;
2525
chroot /root/ mknod /var/run/k8s-socketcan/fakedev b 1 1 && echo Succesfully created the /var/run/k8s-socketcan/fakedev device;
26-
for path in /var/run/containerd/containerd.sock /var/snap/microk8s/common/run/containerd.sock /run/k3s/containerd/containerd.sock; do [ -S /root/$path ] && ln -sfn $sock /root/var/run/k8s-socketcan/containerd.sock && echo "Found containerd socket in $path" && break; done
26+
for path in /var/run/containerd/containerd.sock /var/snap/microk8s/common/run/containerd.sock /run/k3s/containerd/containerd.sock; do [ -S /root/$path ] && chroot /root/ ln -fn $path /var/run/k8s-socketcan/containerd.sock && echo "Found containerd socket in $path" && break; done;
2727
securityContext:
2828
privileged: true
2929
capabilities:

0 commit comments

Comments
 (0)