Projects:Kubernetes: verschil tussen versies
Naar navigatie springen
Naar zoeken springen
Regel 294: | Regel 294: | ||
</pre> | </pre> | ||
Make sure the other nodes can access it, by checking that <code>mkdir /persistent && mount -t nfs <ipaddress>:/persistent /persistent</code> works. | Make sure the other nodes can access it, by checking that <code>mkdir /persistent && mount -t nfs <ipaddress>:/persistent /persistent</code> works. Also, create a file <code>/persistent/helloworld.txt</code> with some contents. | ||
Now we can go ahead and create our pod with this volume (replacing <ipaddress> with the address of your NFS host again): | Now we can go ahead and create our pod with this volume (replacing <ipaddress> with the address of your NFS host again): | ||
Regel 325: | Regel 325: | ||
root@bash:/# mount | grep foo | root@bash:/# mount | grep foo | ||
145.131.6.179:/persistent on /foo type nfs4 (rw,relatime,vers=4.0,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=145.131.6.179,local_lock=none,addr=145.131.6.179) | 145.131.6.179:/persistent on /foo type nfs4 (rw,relatime,vers=4.0,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=145.131.6.179,local_lock=none,addr=145.131.6.179) | ||
root@bash:/# cat /foo/helloworld.txt | |||
Hello world! | |||
</pre> | </pre> | ||