Creating the Local Edition Cluster

Prerequisites

It is the administrator's responsibility to have the Openshift cluster set up and be ready for deployment. Edit the reference deployment file docker-deploy/gcp/openshift/manifest-single-zone.json
Below are the cluster level properties:
  • "tml_cluster_name": "API Management - Local Edition Gateway Reference Cluster",
  • "tml_cluster_mode": "untethered",
  • "tml_zones": ["local"]
Make sure you specify valid value for "tml_cluster_mode". Only 2 values are valid:
  1. tethered : In this mode, Local Edition gets the configuration data from TIBCO API Management cloud (You need to have MOM Key and Secret in this mode).
  2. untethered : In this mode, you configure data through Local Edition config manager UI.
Note:
  • Cluster deployment requires removing the anyuid security context constraint from the service account if already present.
  • To remove anyuid context run the following:
    oc adm policy remove-scc-from-user anyuid <service_account>

Procedure

  1. Navigate to the folder /docker-deploy/gcp/openshift /manifest-single-zone/ and execute below command in the sequence.
  2. Update "k8s_deploy_namespace":"<project name>", in docker-deploy/gcp/openshift/manifest-single-zone.json file.
  3. Create a registry secret to being used by docker to pull images during deployment.
    $$ gcloud auth print-access-token - run this command and its output will replace <password> in below command
     
    oc create secret docker-registry \
    --docker-server=us.gcr.io \
    --docker-username=oauth2accesstoken \
    --docker-password=<password> \
    tmgc-registry-key
  4. Create Local Edition cluster now.
    ./create-tml-cluster.sh
  5. The following command can be used to verify the deployment in GCP Openshift cluster:
    oc get pods
    Example output
    NAME                           READY   STATUS    RESTARTS   AGE
    cache-set-0-0                  1/1     Running   0          11d
    cache-set-0-1                  1/1     Running   0          11d
    cache-set-0-2                  1/1     Running   0          11d
    cass-set-0-0                   1/1     Running   0          11d
    cass-set-0-1                   1/1     Running   0          11d
    cass-set-0-2                   1/1     Running   0          11d
    cm-deploy-0-675f8f57b4-rrj8q   1/1     Running   0          11d
    log-set-0-0                    1/1     Running   0          11d
    log-set-0-1                    1/1     Running   0          11d
    mysql-set-0-0                  1/1     Running   0          11d
    tm-deploy-0-56c5ffd4c-8tw2n    0/1     Running   0          11d
    tm-deploy-0-56c5ffd4c-brk8c    0/1     Running   0          11d
    tm-deploy-0-56c5ffd4c-hk8h7    0/1     Running   0          11d