且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在openshift上部署kaa

更新时间:2023-02-26 22:19:04

您可以使用不同的工作流程来实现目标:

You can use different workflows to achieve the goal:

似乎已经可以使用Docker映像[1],因此您可以尝试将其部署在Openshift中,然后看看会发生什么.

It seems there are Docker images ready to use[1], so you can try deploy it in Openshift and see what happens.

您可以在Openshift中创建自定义s2i [2]映像,并使用运行Kaa所需的所有基本软件来创建Dockerfile.

You can create a custom s2i[2] image in Openshift and create a Dockerfile with all the base software you need to run Kaa.

您可以创建一个包含/添加所需所有软件的Dockerfile(也许是编辑现有的Kaa Dockerfile),然后使用docker策略创建一个BuildConfig [3]并在Openshift项目中运行它,以将您的Kaa映像添加到imagestream,然后使用Deploymentconfig [4]从您的Kaa imagestream部署Pod.

You can create a Dockerfile (maybe editing the exsisting Kaa Dockerfile) that contains/add all the software you need, then create a BuildConfig with docker strategy[3] and run it in an Openshift project to add your Kaa image to the imagestream and then deploy Pods from your Kaa imagestream with a Deploymentconfig[4].

[1]: https://kaaproject.github.io/kaa/docs/v0.10.0/Administration-guide/System-installation/Docker-deployment/

[2]: https://blog.openshift.com/create- s2i-builder-image/

[3]: https ://docs.openshift.com/container-platform/3.7/dev_guide/builds/build_strategies.html#docker-strategy-options

[4]: https://docs.openshift.com/container-platform/3.7/dev_guide/deployments/how_deployments_work.html#creating-a-deployment-configuration