Skip to content

Docker image for running unfs3, a user space NFS server

Notifications You must be signed in to change notification settings

nimbix/docker-unfs3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNFS3 for Docker (in Kubernetes)

Intended to provide an NFS service for a PersistentVolumeClaim in Kubernetes.

Usage

Kubernetes Pod and Service example

apiVersion: v1
kind: Pod
metadata:
  name: unfs3
  labels:
    app: unfs3
  spec:
    containers:
    - name: unfs3
      image: nimbix/unfs3
      imagePullPolicy: Always
      volumeMounts:
      - mountPath: /export
        name: export-vol
  restartPolicy: Always
  volumes:
    - name: export-vol
  persistentVolumeClaim:
    claimName: mypvc
---
apiVersion: v1
kind: Service
metadata:
  name: unfs3
spec:
  type: ClusterIP
  ports:
  - name: tcp111
    port: 111
    targetPort: 111
    protocol: TCP
  - name: udp111
    port: 111
    targetPort: 111
    protocol: UDP
  - name: tcp2049
    port: 2049
    targetPort: 2049
    protocol: TCP
  - name: udp2049
    port: 2049
    targetPort: 2049
    protocol: UDP
  selector:
    app: unfs3

Mount the /export path from the service's ClusterIP after creation. Note that the PersistentVolumeClaim must exist and should be referred to in the pod spec as whatever you named it.

Credits

About

Docker image for running unfs3, a user space NFS server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 95.4%
  • Dockerfile 4.6%