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

Update usage.md #722

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
51 changes: 43 additions & 8 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,16 +283,47 @@ https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-vo
To get started, in an OpenShift environment, we need to relax the security of your cluster, so pods are allowed to
use the **hostPath** volume plugin without granting everyone access to the privileged **SCC**:

1. Edit the restricted SCC:
1. Create new SCC to allow hostpath:
```
$ oc edit scc restricted
$ oc create -f - << EOF
---
allowHostDirVolumePlugin: true
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegeEscalation: true
allowPrivilegedContainer: false
allowedCapabilities: null
apiVersion: security.openshift.io/v1
defaultAddCapabilities: null
fsGroup:
type: MustRunAs
groups:
- system:authenticated
kind: SecurityContextConstraints
metadata:
name: hostpath
priority: null
readOnlyRootFilesystem: false
requiredDropCapabilities:
- KILL
- MKNOD
- SETUID
- SETGID
runAsUser:
type: MustRunAsRange
seLinuxContext:
type: MustRunAs
supplementalGroups:
type: RunAsAny
users: []
volumes:
- hostPath
EOF
```

2. Add `allowHostDirVolumePlugin: true`

3. Save the changes

4. Restart node service (master node).
2. Restart node service (master node).
```
$ sudo systemctl restart origin-node.service
```
Expand Down Expand Up @@ -326,7 +357,7 @@ EOF
| StorageClass Options | Type | Parameters | Example |
|----------------------|---------|--------------------------------------------|----------------------------------|
| size | integer | - | size: "10" |
| provisioning | String | thin, thick | provisioning: "thin" |
| provisioning | String | thin, full | provisioning: "thin" |
| flash-cache | String | true, false | flash-cache: "true" |
| compression | boolean | true, false | compression: "true" |
| MountConflictDelay | integer | - | MountConflictDelay: "30" |
Expand All @@ -337,6 +368,10 @@ EOF
| retentionHours | integer | option of virtualCopyOf | retentionHours: "10" |
| accessModes | String | ReadWriteOnce | accessModes: <br> &nbsp;&nbsp; - ReadWriteOnce |
| replicationGroup | String | 3PAR RCG name | replicationGroup: "Test-RCG" |
| cpg | String | 3PAR CPG name | cpg: 'SSD_r6' |
| snapcpg | String | 3PAR snapCPG name | cpg: 'FC_r6' |
| backend | String | 3PAR name which defined in hpe.conf | bankend: '3PAR1' |
| fsOwner | String | User ID and Group ID | fsOwner: '1001:1001' |


### Persistent Volume Claim Example<a name="pvc"></a>
Expand Down