Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saravanastoragenetwork/openshift_nfs

NFS server in OpenShift
https://github.com/saravanastoragenetwork/openshift_nfs

Last synced: 26 days ago
JSON representation

NFS server in OpenShift

Awesome Lists containing this project

README

        

# Create NFS server
oc create -f nfs-server.yaml

# Create a NFS service on top of the NFS server
oc create -f nfs_service.yaml
// Note down the IP address of the NFS service

--
# Create the storageclass
oc create -f nfs_storageclass.yaml

# Patch the storage class as default
oc patch storageclass nfs-server -p '{"metadata": {"annotations": {"storageclass.kubernetes.io/is-default-class": "true"}}}'

# Patch any other storage class which are set as default to "false"
oc patch storageclass -p '{"metadata": {"annotations": {"storageclass.kubernetes.io/is-default-class": "false"}}}'
--

# Create a PV
oc create -f nfs_pv.yaml
// server:

# Create a PVC
oc create -f nfs_pvc.yaml

# Create a app accessing the PVC
oc create -f nfs_busybox.yaml

# Verify NFS mount
oc rsh po/
# mount | grep nfs