Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable nfsv3 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions exporter/run_nfs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ function start()
mount -t nfsd nfds /proc/fs/nfsd

# from /lib/systemd/system/rpcbind.service
# . /etc/sysconfig/rpcbind
# /sbin/rpcbind -w ${RPCBIND_ARGS}
. /etc/sysconfig/rpcbind
/usr/sbin/rpcbind -w ${RPCBIND_ARGS}

# from /lib/systemd/system/nfs-config.service
/usr/lib/systemd/scripts/nfs-utils_env.sh
Expand All @@ -40,7 +40,7 @@ function start()
# from /lib/systemd/system/nfs-server.service
. /run/sysconfig/nfs-utils
/usr/sbin/exportfs -r
/usr/sbin/rpc.nfsd -N 2 -N 3 -V 4 -V 4.1 $RPCNFSDARGS
/usr/sbin/rpc.nfsd -N 2 -V 3 -V 4 -V 4.1 $RPCNFSDARGS

echo "NFS started"
}
Expand Down
32 changes: 17 additions & 15 deletions nfs-server-pod.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
apiVersion: v1beta1
apiVersion: v1
kind: Pod
id: nfs-server
desiredState:
manifest:
version: v1beta1
id: nfs-server
containers:
- name: nfs-server
image: jsafrane/nfs-data
privileged: true
ports:
- name: nfs
containerPort: 2049
protocol: tcp
labels:
metadata:
name: nfs-server
labels:
role: nfs-server
spec:
containers:
- name: nfs-server
image: jsafrane/nfs-data
ports:
- name: nfs
containerPort: 2049
- name: rpcbind
containerPort: 111
- name: mountd
containerPort: 20048
securityContext:
privileged: true