Skip to Content
Learn OpenShift
book

Learn OpenShift

by Denis Zuev, Artemii Kropachev, Aleksey Usov
July 2018
Intermediate to advanced
504 pages
11h 34m
English
Packt Publishing
Content preview from Learn OpenShift

Configuring NFS exports on the server

This needs to be done on the server-side only. We are going to export several file systems under the /exports directory. The exports will only be accessible by OpenShift nodes.

OpenShift cluster runs Docker containers using random User IDs (UIDs). It is difficult to predict a UID to give proper NFS permissions, so we have to configure the following NFS settings to allow OpenShift to use NFS shares properly:

  • A share should be owned by the nfsnobody user and group.
  • A share should have 0700 access permissions.
  • A share should be exported using the all_squash option. This will be described later in this topic.
  1. Create the required directories and assign them to the proper permissions:
# mkdir -p /exports/{nfsvol1,nfsvol2,nfsvol3} ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Operating OpenShift

Operating OpenShift

Rick Rackow, Manuel Dewald
OpenShift for Developers, 2nd Edition

OpenShift for Developers, 2nd Edition

Joshua Wood, Brian Tannous
Kubernetes: Up and Running, 2nd Edition

Kubernetes: Up and Running, 2nd Edition

Brendan Burns, Joe Beda, Kelsey Hightower

Publisher Resources

ISBN: 9781788992329Supplemental Content