WSO2 APIM OpenShift Deployment- Create http route for API gateway
In this post I'll be sharing one of the use case to achieve in WSO2 OpenShift Deployment
Environment: OpenShift 4.x, WSO2 APIM 3.2.0.x, RHEL 8.3
Business Requirement: Getting http based URL for API gateway component in OpenShift deployment of WSO2 API Manager
Steps to achieve: By default WSO2 APIM (deployment pattern-1: all in one two node stateful set) provides 3 routes for respective services based on https protocol as
For API Gateway : wso2am-gateway-test.apps.devtest.host.local
For APIM Portals : wso2am-am-test.apps.devtest.host.local
Now in order to get a http based URL for API gateway, we have to create a new route. This can be achieved via config map or directly via OpenShift console. I've used OpenShift console to create a new route for API gateway based on http protocol. Below are the steps-
1. Login to OpenShift console & Navigate to respective project
2. Navigate to Networking > Routes from left navigation
3. Click on [Create Route] button to create a new route
4. Provide the details as required & make sure you select the details as-
a. Name: wso2am-pattern-1-am-gateway-http
b. Hostname apitest.apps.devtest.host.local (this will be used as url to access the api gateway)
c. Path: leave it blank
d. Service: wso2am-pattern-1-am-service
e. Security: Uncheck 'Secure Route' option
5. Click on create
6. The route will now be visible on routes main page
Thank you for sharing such a useful article. I had a great time. This article was fantastic to read. Continue to publish more articles on
ReplyDeleteData Engineering Services
Data Analytics Solutions
Data Modernization Solutions
AI & ML Service Provider