Razique Mahroua
2020-03-18 b85c91a8192593f6b62f93e11c971868964343a9
commit | author | age
8c678c 1 Role Name
WK 2 =========
3
4 ocp-dynamic-nfs-provisioner
5
6 Install the Kubernetes Dynamic NFS Provisioner on an OpenShift Cluster.
7
8 Requirements
9 ------------
10
11 This role needs to run on a host that has the oc binary installed and where the oc is logged into the cluster as a user with system:admin privileges.
12
13 It is probably easiest to run this role on a Master.
14
15 Role Variables
16 --------------
17
18 |Variable Name|Required|Default Value|Description
19 |------------ |----------- |-----------|-----------
20 |*nfs_provisioner_project*|No|"nfs-provisioner" |Name of the project for the NFS Provisioner
21 |*nfs_provisioner_storage_class_name*|No|"nfs-storage"|Name of the storage class associated with the NFS Provisioner
22 |*nfs_provisioner_storage_class_is_default*|No |False |Set to True if the NFS Provisioner Storage Class should be created as he default storage class in the cluster. Usually this is set to True if NFS is the only storage in the cluster
23 |*nfs_provisioner_storage_class_archiveOnDelete*|No|False |Should Volumes be archived upon deletion of a PVC
24 |*nfs_provisioner_storage_class_provisioner_name*|No |"nfs-storage" |Name of the NFS Storage Class Provisioner
25 |*nfs_provisioner_nfs_server_hostname*|Yes| "support1.GUID.internal"| The hostname (or IP Address) of the NFS Server
26 |*nfs_provisioner_server_directory*|Yes| "/srv/nfs/dynamic"| The top-level directory on the NFS Server under which the dynamically provisioned NFS volumes are to be created
27
28 Dependencies
29 ------------
30
31 - NFS Server
32 - A directory on the NFS Server that exists with "nfsnobody:nfsnobody" and 0777 permissions (e.g. '/srv/nfs/kubernetes')
33
34
35 Example Playbook
36 ----------------
37
38 ```
39 - name: Set up Dynamic NFS Provisioning
40   hosts: masters
41   run_once: true
42   gather_facts: False
43   tasks:
44   - name: Set up Dynamic NFS Provisioning
45       include_role:
efe8d4 46         name: "ocp-dynamic-nfs-provisioner"
8c678c 47       vars:
WK 48         nfs_provisioner_nfs_server_hostname: "support.GUID.internal"
49         nfs_provisioner_storage_class_is_default: True
50 ```