Skip to content

noseka1/openshift-automount-nfs-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automounting NFS on OpenShift

This proof of concept shows how to automount NFS shares on OpenShift.

This repo uses openshift-toolbox image.

Deployment overview

Deployment overview

Mount propagation

Mount propagation

Deploying POC

Create a namespace where everything else will be deployed to:

$ oc apply --kustomize namespace

Unless you are bringing your own NFS server, you can deploy one on OpenShift:

$ oc apply --kustomize nfs-server

Obtain the IP address of the NFS server

$ oc get svc --namespace automount-nfs-poc nfs-server --output jsonpath='{.spec.clusterIP}'

Update the NFS IP address:

$ vi automount/extra.nfs

Deploy automount daemonset:

$ oc apply -k automount

Deploy a test pod:

$ oc apply --kustomize test-pod

Cleaning up

$ oc delete --kustomize namespace

Video

How to Automount NFS on OpenShift

TODO

  • Automount doesn't seem to unmount unused volumes after a timeout

References

About

Automounting NFS on OpenShift (proof of concept)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages