1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

Draft of deploying the local provisioner

This commit is contained in:
Traci Morrison
2018-09-05 11:01:31 -04:00
committed by GitHub
parent bb44f3be91
commit ee4bc95732

View File

@@ -0,0 +1,20 @@
[id='deploying-local-provisioner_{context}']
= Deploying the local provisioner
This paragraph is the procedure module introduction: a short description of the procedure.
.Prerequisites
* Before starting the provisioner, mount all local devices and create a ConfigMap with storage classes and their directories.
.Procedure
. Install the local provisioner from the `*local-storage-provisioner-template.yaml*` file.
. Create a service account that allows running pods as a root user, using hostPath volumes, and using any SELinux context to monitor, manage, and clean local volumes, for example:
+
----
$ oc create serviceaccount local-storage-admin
$ oc adm policy add-scc-to-user privileged -z local-storage-admin
----
+
To allow the provisioner pod to delete content on local volumes created by any pod, root privileges and any SELinux context are required. hostPath is required to access the `*/mnt/local-storage*` path on the host.