Creating a Mashery Local Cluster
- Login into OpenShift server. Get the login url by running the following command.
az group deployment show --name Microsoft.Template --resource-group <ResourceGroupName> | grep "cloudapp.azure.com/console"
Example Command:az group deployment show --name Microsoft.Template --resource-group suneelOSFPClusterRG | grep "cloudapp.azure.com/console"
Output-"value": "https://masterdnspbodumwnz6vx6.eastus.cloudapp.azure.com/console"
Now use the above URL to login.oc login <openshiftConsoleUrl> -u <username> --insecure-skip-tls-verify
Example Command:oc login https://masterdnspbodumwnz6vx6.eastus.cloudapp.azure.com -u ocpadmin --insecure-skip-tls-verify
- Create a new project:
oc new-project <project name>
Sample:oc new-project ml5-openshift
- Make sure you are on a newly created project by running the following command.
oc project <project name>
Example Command:- oc project ml5-openshift
- Assign
anyuid security context constraint to the project.
oc adm policy add-scc-to-user anyuid system:serviceaccount:<project name>:<service_account>
Example Command:oc adm policy add-scc-to-user anyuid system:serviceaccount:ml5-openshift:default
- Obtain the registry url created by the OpenShift deployment.
- Now login into the registry to push the images. This step must be completed successfully before proceeding further.
docker login -u clusteradmin -p $(oc whoami -t) <REGISTRY_HOST>
Example Command:docker login -u ocpadmin -p $(oc whoami -t) docker-registry-default.x.x.94.123.nip.io
Upload the images into the registry:./upload-images.sh
- Run the following command to set registry secret in the OpenShift cluster:
./set-registry-secret.sh
- Run the following command to create the TIBCO Mashery Gateway cluster:
./create-tml-cluster.sh
Copyright © Cloud Software Group, Inc. All rights reserved.