在 PCF 服务注册表中注册外部托管的应用程序
Register Externally hosted app in PCF Service Registry
我正在尝试将 ASP.NET 4.x 外部托管的应用程序(使用 AWS Elastic Beanstalk)添加到现有 PCF 的服务注册表中。
编辑:这可能吗?如果是这样,有人可以给我一个如何做到这一点的例子吗
假设您在 PCF 中的应用程序和外部应用程序之间的各个方向都有网络连接,是的,这应该是很有可能的。
但是,如果您使用 Spring Cloud Eureka,您的外部托管应用程序将需要获得有效的 OAuth 凭据,以便它可以在注册之前进行身份验证。
Daniel Mikusa 的评论非常适合我如何实现这一目标。
For Pivotal SCS, you would want to create a service instance (if you
don't have one already), then create a service key for your external
app. That will give you all of the binding info/creds you need to
connect from your remote service. A service key is the same as binding
a service to an app, except it's not tied to an app so it works well
for situations like this. Just give your service key a good name, so
you know that it's being used by an external app when you come back
and see it a year from now
我正在尝试将 ASP.NET 4.x 外部托管的应用程序(使用 AWS Elastic Beanstalk)添加到现有 PCF 的服务注册表中。 编辑:这可能吗?如果是这样,有人可以给我一个如何做到这一点的例子吗
假设您在 PCF 中的应用程序和外部应用程序之间的各个方向都有网络连接,是的,这应该是很有可能的。
但是,如果您使用 Spring Cloud Eureka,您的外部托管应用程序将需要获得有效的 OAuth 凭据,以便它可以在注册之前进行身份验证。
Daniel Mikusa 的评论非常适合我如何实现这一目标。
For Pivotal SCS, you would want to create a service instance (if you don't have one already), then create a service key for your external app. That will give you all of the binding info/creds you need to connect from your remote service. A service key is the same as binding a service to an app, except it's not tied to an app so it works well for situations like this. Just give your service key a good name, so you know that it's being used by an external app when you come back and see it a year from now