이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 4. Setting up the Environment


This chapter outlines the details for setting up the environment for Red Hat Gluster Storage Container Converged in OpenShift.

4.1. Preparing the Red Hat OpenShift Enterprise Cluster

Execute the following steps to prepare the Red Hat OpenShift Enterprise cluster:
  1. On the client, execute the following command to login as the cluster admin user:
    # oc login
    Copy to Clipboard Toggle word wrap
    For example:
    # oc login
    
    Authentication required for https://master.example.com:8443 (openshift)
    Username: <cluster-admin-user>
    Password: <password>
    Login successful.
    
    You have access to the following projects and can switch between them with 'oc project <projectname>':
    
      * default (current)
      * management-infra
      * openshift
      * openshift-infra
    
    Using project "default".
    Copy to Clipboard Toggle word wrap
  2. Execute the following command to create a project, which will contain all the containerized Red Hat Gluster Storage services:
    # oc new-project <project name>
    Copy to Clipboard Toggle word wrap
    For example:
    # oc new-project storage-project
    
    Now using project "storage-project" on server "https://master.example.com:8443"
    Copy to Clipboard Toggle word wrap
  3. Execute the following steps to set up the router:

    Note

    If a router already exists, proceed to Step 5.
    1. Execute the following command on the client that is used to deploy Red Hat Gluster Storage Container Converged with OpenShift:
      # oadm policy add-scc-to-user privileged -z router
      # oadm policy add-scc-to-user privileged -z default
      Copy to Clipboard Toggle word wrap
    2. Execute the following command to deploy the router:
      # oadm router storage-project-router --replicas=1
      Copy to Clipboard Toggle word wrap
    3. Edit the subdomain name in the config.yaml file located at /etc/origin/master/master-config.yaml .
      For example:
      subdomain:  "cloudapps.mystorage.com”
      Copy to Clipboard Toggle word wrap
    4. Restart the master OpenShift services by executing the following command:
      # systemctl restart atomic-openshift-master
      Copy to Clipboard Toggle word wrap

      Note

      If the router setup fails, use the port forward method as described in Appendix B, Client Configuration using Port Forwarding
  4. After the router is running, the clients have to be setup to access the services in the OpenShift cluster. Execute the following steps to set up the DNS.
    1. On the client, edit the /etc/dnsmasq.conf file and add the following line to the file:
      address=/.cloudapps.mystorage.com/<Router_IP_Address>
      Copy to Clipboard Toggle word wrap
      where, Router_IP_Address is the IP address of one of the nodes running the router.

      Note

      Ensure you do not edit the /etc/dnsmasq.conf file until the router has started.
    2. Restart the dnsmasq service by executing the following command:
      # systemctl restart dnsmasq
      Copy to Clipboard Toggle word wrap
    3. Edit /etc/resolv.conf and add the following line:
      nameserver 127.0.0.1
      Copy to Clipboard Toggle word wrap
  5. After the project is created, execute the following command on the master node to deploy the privileged containers:
    # oadm policy add-scc-to-user privileged -z default
    Copy to Clipboard Toggle word wrap

    Note

    Red Hat Gluster Storage container can only run in privileged mode.
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2026 Red Hat
맨 위로 이동