Upgrading OpenShift installations

Before you begin

The ID that you use to install the product must be able to make changes to the host environment. The tools required by all installation scenarios include the following items:
  • Docker installed on the host system.
    Note: If you use Docker for Windows, make sure Docker is using Linux-type containers. HCL Accelerate does not support Windows-type containers.
  • Internet connection. During installation, files and container images are retrieved from remote locations. If you are unable to access the internet during installation, you can download the files beforehand and perform an offline installation. HCL Accelerate supports the following browsers: Chrome, Firefox, and Edge.
    Note: Steps to retrieve the container images from public repository to your private repository:

    Use pull command to pull the container images from public repository.

    $ docker pull public repo

    Use tag command to tag the public and private repository.

    $ docker tag public repo private repo

    Use push command to push container images to private repository.

    $ docker push private repo

    All the container images are retrieved from public to private repository.

Note: The installation files used for offline installation are not the same as those used for internet-connected installation. Ensure that you download the right file for you installation environment.

If you are performing an offline installation of HCL Accelerate, GraphQL Playground will not load for use.

In addition to the requirements for all installation scenarios, you need the following items:

  • Configured OpenShift client instance. This topic uses Minishift for local instance installations.
  • OpenShift command line tool, OC, installed on the client.
  • Access to the PEM-format certificate and private key that you can use to configure OpenShift routes.
  • Master node: 2 vCPU, 8 GB RAM, 30 GB storage.
  • Other nodes: 1vCPU, 8 GB RAM, 15 GB storage.

About this task

You will install HCL Accelerate into a OpenShift project. During installation, you configure a MongoDB for your project, add the HCL Accelerate service to your OpenShift project catalog, and create a route that makes the HCL Accelerate application publicly accessible.

Procedure

  1. Download the installation file for your environment.
    Note: For macOS and Linux installations, set the appropriate permissions before running the file: sudo chmod +x.
  2. Run the downloaded executable file.
  3. At the Please enter your Velocity access key prompt, enter your SE version access key.
    If you previously installed an SE version, the already-configured key is the default value.
    Note: Make sure that you enter the key for the right version.
  4. At the Enter the location where the Velocity files will be installed prompt, specify where to put the installation files.
  5. From the OpenShift dashboard, create a project for HCL Accelerate.
    When the project is created, in the My Projects area, select the project, and then click Browse Catalog.
  6. Install the HCL Accelerate service template in the project catalog by completing the following steps:.
    1. If it isn't already extracted, extract the yaml file from the archive, velocity-se-<version number>-openshift.tar.gz, that you installed earlier.
      The name of the yaml is velocity-se-<version number>-openshift.yaml.
    2. From OpenShift project catalog, use the Add to Project > Import YAML/JSON command to import the velocity-se-<version number>-openshift.yaml file.
      The service is added to the catalog.
    3. Select Create, and then uncheck Process the Templateand check Save Template.
      After refreshing the browser, you see the HCL Accelerate service in the OpenShift project catalog.
  7. Create a MongoDB service for the project by completing the following steps:
    1. From the OpenShift project catalog, select MongoDB.
    2. On the MongoDB configuration page, click Next, and then, in the MongoDB Admin Password field, enter a password for admin user.
      You can accept the default values for the other parameters.
      Note: The user must be the admin user, not the MongoDB user.
    3. Click Create.
    4. On the MongoDB has been created page, copy the Connection URL string and store it in a readily-accessible location, then close the configuration window.
      You use the connection string to configure your HCL Accelerate project.
  8. Create an HCL Accelerate service by completing these steps.
    1. From project catalog, select Velocity OpenShift Catalog.
      The Velocity configuration window is displayed.
    2. Click Next, and then, in the Name field, enter a service name.
    3. In the Hostname field, enter the service host name.

      The host name must resolve to a name on your DNS server, or in the server's hosts file. On Linux, the file location is etc/hosts; on Windows, the location is C:\Windows\System32\drivers\etc\hosts.

    4. In the Access Key field, paste the HCL Accelerate access key received earlier.
    1. In the Mongo URL field, paste MongoDB connection string for the MongoDB service.
      Do not use the default user or database name. Use the admin user and password you created for the admin. For example:
      mongo://admin:password@mongodb
      Note: When you copy the sample connection code, make sure that you delete the sampleDB part from the copied code.
      If you do not want to use the admin user, log on to the MongoDB and use a command similar to this one to grant admin permissions to the user:
      
      db.grantRolesToUser( "mongo", ["readWriteAnyDatabase", "dbAdminAnyDatabase", "clusterAdmin"]  )
    1. Accept the default values for the other parameters and click Create.
  9. Create a route by completing the following steps:
    1. From project dashboard, click Applications > Routes > Create Route.
    2. In the Name field, provide a name for the route.
    3. In the Hostname field, enter the host name you specified earlier for HCL Accelerate.
    4. In the Service field, select the velocity-router service.
    5. Check Secure route.
    6. From the TLS Termination list, select Edge.
    7. Upload your PEM-format certificate or, on the Insecure Traffic list, select Allow.
    8. Click Create.
    The new route is listed on the Routes page.

What to do next

After the installation is complete, open HCL Accelerate by clicking the route name link. The default user name is admin and the default password is admin.