无法在Cloud Foundry中创建服务实例

mhl*_*dry 5 cloud-foundry

我正在尝试使用我正在我的机器上运行的Cloud Foundry实例来使用spring cloud应用程序.我试图推送应用程序,我收到此消息:

无法找到服务postgres-service绑定到hello-spring-cloud

所以我开始追踪postgres服务.当我运行cf marketplace时,我明白了

service      plans     description
mongodb      default   MongoDB NoSQL database
postgresql   default   PostgreSQL database
rabbitmq     default   RabbitMQ message queue
redis        default   Redis key-value store

我尝试创建postgresql服务的服务实例,我得到:

cf create-service postgresql default postgresql-service
Creating service instance postgresql-service in org xyz / space development as admin...
FAILED
Server error, status code: 500, error code: 10001, message: Service broker error: Not authorized

我尝试过运行,cf create-service-auth-token postgresql core 123但似乎没有帮助"未授权"消息.

我对Cloud Foundry很新,所以我有点失落.如何让我的示例应用程序绑定到postgresql服务?

更新

以下是空间的权限:

Getting users in org xyz / space development as admin

SPACE MANAGER
  admin

SPACE DEVELOPER
  admin

**更新2:cf服务访问**

$ cf service-access
Getting service access as admin...

然后终端上什么都没显示.所以我尝试启用服务访问...

$ cf enable-service-access postgresql
Enabling access to all plans of service postgresql for all orgs as admin...
All plans of the service are already accessible for all orgs
OK

但我仍然无法创建服务.

小智 0

不确定是否有解决方案,但这看起来像是 PostgreSQL 服务代理部署的问题(服务代理的身份验证凭据)。

可以通过以下方式检查/更新

cf service-brokers
cf update-service-broker ...
Run Code Online (Sandbox Code Playgroud)

或通过重新部署服务(通过 PCF/bosh 中的图块或您使用的任何方式)