Creating a Mashery Local Cluster

Follow this procedure to create a Mashery Local cluster.

Navigate to the folder /docker-deploy/azure/openshift/manifest-single-zone/ and execute the following commands in sequence.

Note: Cluster deployment requires root-level privileges in order for the Mashery Local containers to run. Log in as root to perform the tml-cluster deployment.
  1. Login into the OpenShift server and run the following command, which will prompt you for a user name and password:
    oc login <openshiftConsoleUrl> 
  2. Create a new project:
    oc new-project <project name>
    For example::
    oc new-project ml5-openshift
  3. Assign the anyuid security context constraint to the project:
    oc adm policy add-scc-to-user anyuid system:serviceaccount:<project name>:<service_account>
    For example:
    oc adm policy add-scc-to-user anyuid system:serviceaccount:ml5-openshift:default
  4. Create a registry secret to be used by Docker to pull images during deployment:
    ./set-registry-secret.sh
  5. Run the following command to create the TIBCO Mashery cluster:
    ./create-tml-cluster.sh
  6. Run the following command to verify the deployment in the Azure OpenShift cluster:
    oc get pods

    Example output:

    NAME                           READY     STATUS    RESTARTS   AGE
     
    cache-set-0-0                  1/1       Running   0          21h
     
    cass-set-0-0                   1/1       Running   0          21h
     
    cm-deploy-0-fdc68b486-z6m4k    1/1       Running   0          21h
     
    log-set-0-0                    1/1       Running   0          21h
     
    mysql-set-0-0                  1/1       Running   0          21h
     
    tm-deploy-0-596d986875-lk5sf   1/1       Running   0          21h