如何在 Cloud Foundry 中部署服务?
How to deploy service in Cloud Foundry?
我是 CloudFoundry 的新手,非常感谢您的帮助。
因此,我需要为我们的产品创建 CF ServiceBroker,并且我试图找出正确的方法。
我在文档中找到了部署类型:
https://docs.cloudfoundry.org/services/overview.html
The following are examples of valid deployment models.
1) Entire service packaged and deployed by BOSH alongside Cloud Foundry
2) Broker packaged and deployed by BOSH alongside Cloud Foundry, rest of
the service deployed and maintained by other means.
3) Broker (and optionally service) pushed as an application to Cloud Foundry user space
4) Entire service, including broker, deployed and maintained
outside of Cloud Foundry by other means
到目前为止,我已经看到了部署类型 3 和 4 的示例 - 很明显 - 我只需要实现 ServiceBroker API,部署它并使用命令 'cf create-service-broker' 创建服务代理.对于这些部署类型,我需要维护我的服务后端。例如,如果我的服务提供 MongoDB 作为服务,我需要让服务器(例如在 Amazon 中)安装 MongoDB 数据库。 ServiceBroker 将在那里委托所有应用程序。
但我找不到 1 和 2 部署类型的任何示例。据我所知,目前第一种部署类型允许在 Cloud Foundry 上部署 ServiceBroker 和服务后端。因此,对于这种类型,我不需要安装 MongoDB 的单独服务器,但我可以以某种方式将 Mongo 数据库部署到 CloudFoundry。
那么,我的问题是:
1)我的理解正确吗?
2) 是否有任何示例如何在 CLoudFounry 上部署服务代理和服务后端?
感谢您的帮助。
1) 不,它允许您使用 bosh 部署自己的 releases/deployment 以及 CloudFoundry(或在单独的 IaaS 上)。
要问的正确问题是 "How to create a bosh release for my application and service broker with bosh v2 manifest deployment"。
2) 最好的方法是查看 https://github.com/cloudfoundry and https://github.com/cloudfoundry-community, like https://github.com/cloudfoundry/cf-mysql-deployment and https://github.com/cloudfoundry/cf-mysql-release
内的现有项目
更多关于https://bosh.io/docs#basic-deploy and https://bosh.io/docs/manifest-v2.html
为高学习曲线做好准备。
我是 CloudFoundry 的新手,非常感谢您的帮助。
因此,我需要为我们的产品创建 CF ServiceBroker,并且我试图找出正确的方法。
我在文档中找到了部署类型:
https://docs.cloudfoundry.org/services/overview.html
The following are examples of valid deployment models.
1) Entire service packaged and deployed by BOSH alongside Cloud Foundry
2) Broker packaged and deployed by BOSH alongside Cloud Foundry, rest of the service deployed and maintained by other means.
3) Broker (and optionally service) pushed as an application to Cloud Foundry user space
4) Entire service, including broker, deployed and maintained outside of Cloud Foundry by other means
到目前为止,我已经看到了部署类型 3 和 4 的示例 - 很明显 - 我只需要实现 ServiceBroker API,部署它并使用命令 'cf create-service-broker' 创建服务代理.对于这些部署类型,我需要维护我的服务后端。例如,如果我的服务提供 MongoDB 作为服务,我需要让服务器(例如在 Amazon 中)安装 MongoDB 数据库。 ServiceBroker 将在那里委托所有应用程序。
但我找不到 1 和 2 部署类型的任何示例。据我所知,目前第一种部署类型允许在 Cloud Foundry 上部署 ServiceBroker 和服务后端。因此,对于这种类型,我不需要安装 MongoDB 的单独服务器,但我可以以某种方式将 Mongo 数据库部署到 CloudFoundry。
那么,我的问题是:
1)我的理解正确吗?
2) 是否有任何示例如何在 CLoudFounry 上部署服务代理和服务后端?
感谢您的帮助。
1) 不,它允许您使用 bosh 部署自己的 releases/deployment 以及 CloudFoundry(或在单独的 IaaS 上)。
要问的正确问题是 "How to create a bosh release for my application and service broker with bosh v2 manifest deployment"。
2) 最好的方法是查看 https://github.com/cloudfoundry and https://github.com/cloudfoundry-community, like https://github.com/cloudfoundry/cf-mysql-deployment and https://github.com/cloudfoundry/cf-mysql-release
内的现有项目更多关于https://bosh.io/docs#basic-deploy and https://bosh.io/docs/manifest-v2.html
为高学习曲线做好准备。