Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
3411f434
Commit
3411f434
authored
May 10, 2016
by
Huamin Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expose rpcbind service, so nfs client can use service IP to access NFS share
Signed-off-by:
Huamin Chen
<
hchen@redhat.com
>
parent
bd68007f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
Dockerfile
examples/nfs/nfs-data/Dockerfile
+2
-2
nfs-server-rc.yaml
examples/nfs/nfs-server-rc.yaml
+3
-1
nfs-server-service.yaml
examples/nfs/nfs-server-service.yaml
+2
-0
No files found.
examples/nfs/nfs-data/Dockerfile
View file @
3411f434
...
...
@@ -20,7 +20,7 @@ ADD run_nfs.sh /usr/local/bin/
ADD
index.html /tmp/index.html
RUN
chmod
644 /tmp/index.html
# expose mountd 20048/tcp and nfsd 2049/tcp
EXPOSE
2049/tcp 20048/tcp
# expose mountd 20048/tcp and nfsd 2049/tcp
and rpcbind 111/tcp
EXPOSE
2049/tcp 20048/tcp
111/tcp 111/udp
ENTRYPOINT
["/usr/local/bin/run_nfs.sh", "/exports"]
examples/nfs/nfs-server-rc.yaml
View file @
3411f434
...
...
@@ -13,12 +13,14 @@ spec:
spec
:
containers
:
-
name
:
nfs-server
image
:
gcr.io/google-samples/nfs-server:1.0
image
:
hchen/nfs3-server:latest
#
gcr.io/google-samples/nfs-server:1.0
ports
:
-
name
:
nfs
containerPort
:
2049
-
name
:
mountd
containerPort
:
20048
-
name
:
rpcbind
containerPort
:
111
securityContext
:
privileged
:
true
volumeMounts
:
...
...
examples/nfs/nfs-server-service.yaml
View file @
3411f434
...
...
@@ -8,5 +8,7 @@ spec:
port
:
2049
-
name
:
mountd
port
:
20048
-
name
:
rpcbind
port
:
111
selector
:
role
:
nfs-server
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment