If you want to host Usage Metering Service at a public URL and the route was not created automatically during the installation, create the route manually.
Procedure
-
Log in to your OpenShift cluster console.
-
Go to .
-
From the Project drop-down list, choose ibm-usage-metering.
-
To create the ibm-usage-metering-fetch route, click Create Route, and choose YAML view.
-
Update the
spec section as follows.
s
spec:
# Example: ibm-usage-metering-fetch-ibm-usage-metering.apps.cluster.domain.com
host: ${ROUTE_HOSTNAME}
# Target service
to:
kind: Service
name: ibm-usage-metering-instance
weight: 100
# Port configuration - using named port 'ibm-usage-metering-fetch'
port:
targetPort: ibm-usage-metering-fetch
Where
${ROUTE_HOSTNAME} is an alias or DNS that points to the service.
-
Click Create.