This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.此内容没有您所选择的语言版本。
4.3. Deploying the Containers
Execute the following commands to deploy the Red Hat Gluster Storage container on the nodes:
- List out the hostnames of the nodes on which the Red Hat Gluster Storage container has to be deployed:
oc get nodes
# oc get nodes
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Deploy a Red Hat Gluster Storage container on a node by executing the following command:
oc process glusterfs -v GLUSTERFS_NODE=<node_hostname> | oc create -f -
# oc process glusterfs -v GLUSTERFS_NODE=<node_hostname> | oc create -f -
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For example:oc process glusterfs -v GLUSTERFS_NODE=node1.example.com | oc create -f -
# oc process glusterfs -v GLUSTERFS_NODE=node1.example.com | oc create -f - deploymentconfig "glusterfs-dc-node1.example.com" created
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Repeat the step of deploying the Red Hat Gluster Storage container on each node.Note
This command deploys a single Red Hat Gluster Storage container on the node. This does not initialize the hardware or create trusted storage pools. That aspect will be taken care by Heketi which is explained in the further steps. - Execute the following command to deploy heketi:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Execute the following command to verify that the containers are running:
oc get pods
# oc get pods
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow