Skip to content

Latest commit

 

History

History
69 lines (43 loc) · 1.47 KB

README.md

File metadata and controls

69 lines (43 loc) · 1.47 KB

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