问题描述
我有一堆微服务要部署在Openshift环境中。我正在使用Spring Cloud网关进行服务发现。我使用Spring云网关是因为我需要为我的微服务开发身份验证和授权。
微服务和SpringCloudGateway在本地运行良好。如何为Openshift环境网关项目中部署的微服务指定URI(在路由中)?我不想在openshift中为服务创建路由,以防止暴露我的微服务。
server:
port: 8080
---
spring:
cloud:
gateway:
routes:
- id: course
uri: http://localhost:8081/newService // For localhost it works fine.
predicates:
- Path=/getByNewServiceId/**
在openshift环境中进行部署以访问微服务时我还应该做什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)