Este contenido no está disponible en el idioma seleccionado.

4.3. Deploying the Containers


Execute the following commands to deploy the Red Hat Gluster Storage container on the nodes:
  1. List out the hostnames of the nodes on which the Red Hat Gluster Storage container has to be deployed:
    # oc get nodes
    Copy to Clipboard Toggle word wrap
    For example:
    # oc get nodes
    
    NAME                    STATUS                     AGE
    node1.example.com       Ready                      12d
    node2.example.com       Ready                      12d
    node3.example.com       Ready                      12d
    master.example.com      Ready,SchedulingDisabled   12d
    Copy to Clipboard Toggle word wrap
  2. 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 -
    Copy to Clipboard Toggle word wrap
    For example:
    # oc process glusterfs -v GLUSTERFS_NODE=node1.example.com | oc create -f -
    
    deploymentconfig "glusterfs-dc-node1.example.com" created
    Copy to Clipboard Toggle word wrap
    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.
  3. Execute the following command to deploy heketi:
    # oc process deploy-heketi -v \
        HEKETI_KUBE_NAMESPACE=<Project name> \
        HEKETI_KUBE_APIHOST='<OpenShift master endpoint address>' \
        HEKETI_KUBE_INSECURE=y \
        HEKETI_KUBE_USER=<user name> \
        HEKETI_KUBE_PASSWORD=<password> | oc create -f -
    Copy to Clipboard Toggle word wrap
    For example:
    # oc process deploy-heketi -v \
        HEKETI_KUBE_NAMESPACE=storage-project \
        HEKETI_KUBE_APIHOST='https://master.example.com:8443' \
        HEKETI_KUBE_INSECURE=y \
        HEKETI_KUBE_USER=test-admin \
        HEKETI_KUBE_PASSWORD=admin | oc create -f -
    
    service "deploy-heketi" created
    route "deploy-heketi" created
    deploymentconfig "deploy-heketi" created
    Copy to Clipboard Toggle word wrap
  4. Execute the following command to verify that the containers are running:
    # oc get pods
    Copy to Clipboard Toggle word wrap
    For example:
    # oc get pods
    
    NAME                                    READY     STATUS    RESTARTS   AGE
    storage-project-router-1-lyxog           1/1       Running   0          1d
    glusterfs-dc-node1.example.com-ghyta     1/1       Running   0          1m
    glusterfs-dc-node2.example.com-gdfhr     1/1       Running   0          1m
    glusterfs-dc-node3.example.com-nhtsa     1/1       Running   0          1m
    deploy-heketi                            1/1       Running   0          1m
    Copy to Clipboard Toggle word wrap
Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat