kata-irc-bot | <fighterhitx> Hi, I am confused that I specified in the pod yaml to mount `/dev` into the pod container as `hostPath`, but the device such as `/dev/loop4p1` on the host is not in the kata container. • Host ```root@ai-2080ti-27:~# ls -lh /dev/|grep loop brw-rw---- 1 root disk 7, 0 Apr 14 05:40 loop0 brw-rw---- 1 root disk 7, 1 Apr 14 05:40 loop1 brw-rw---- 1 root disk 7, 2 Apr 14 05:40 loop2 brw-rw---- 1 root disk 7, | 08:09 |
---|---|---|
kata-irc-bot | 3 Apr 14 05:41 loop3 brw-rw---- 1 root disk 7, 4 Apr 14 14:51 loop4 brw-rw---- 1 root disk 259, 0 Apr 14 14:51 loop4p1 brw-rw---- 1 root disk 7, 5 Apr 17 01:23 loop5 brw-rw---- 1 root disk 259, 1 Apr 17 01:23 loop5p1 brw-rw---- 1 root disk 7, 6 Apr 17 13:08 loop6 brw-rw---- 1 root disk 259, 2 Apr 17 13:08 loop6p1 brw-rw---- 1 root disk 7, 7 Apr 17 13:09 loop7 crw-rw---- 1 root disk 10, 237 Apr 14 | 08:09 |
kata-irc-bot | 05:40 loop-control``` • kata containers ```root@kata3-84bf96886c-xsgp2:/# ls -lh /dev|grep loop crw------- 1 root root 10, 237 Apr 19 02:01 loop-control brw------- 1 root root 7, 0 Apr 19 02:01 loop0 brw------- 1 root root 7, 1 Apr 19 02:01 loop1 brw------- 1 root root 7, 2 Apr 19 02:01 loop2 brw------- 1 root root 7, 3 Apr 19 02:01 loop3 brw------- 1 root root 7, 4 Apr 19 02:01 loop4 brw------- 1 root root 7, | 08:09 |
kata-irc-bot | Apr 19 02:01 loop5 brw------- 1 root root 7, 6 Apr 19 02:01 loop6 brw------- 1 root root 7, 7 Apr 19 02:01 loop7``` • pod yaml ``` volumeMounts: - mountPath: /dev name: dev ...... volumes: - hostPath: path: /dev type: "" name: dev``` | 08:09 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!