bureaucraten, interfacemoderatoren, Beheerders (Semantic MediaWiki), Curatoren (Semantic MediaWiki), Redacteuren (Semantic MediaWiki), toezichthouders, beheerders
205
bewerkingen
Regel 287: | Regel 287: | ||
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. | ||
Now we can go ahead and create our pod with this volume: | Now we can go ahead and create our pod with this volume: | ||
<pre> | <pre> | ||
$ cat bash.yaml | $ cat bash.yaml | ||
apiVersion: v1 | apiVersion: v1 | ||
Regel 346: | Regel 299: | ||
volumes: | volumes: | ||
- name: testing-volume | - name: testing-volume | ||
nfs: | |||
path: /persistent | |||
server: <ipaddress> | |||
containers: | containers: | ||
- name: bash | - name: bash | ||
Regel 361: | Regel 315: | ||
$ kubectl attach -ti bash -c bash | $ kubectl attach -ti bash -c bash | ||
If you don't see a command prompt, try pressing enter. | If you don't see a command prompt, try pressing enter. | ||
root@bash:/# | 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) | |||
</pre> | </pre> | ||