简体   繁体   中英

How to connect my docker image to my kubernetes cluster?

I have a simple play project, and I created a docker image for it.

I created the image like:

in my circle.yml I added:

deployment:
  feature:
    branch: /.*/
    commands:
      - docker login -e admin@something.com -u ${ART_USER} -p ${ART_KEY} crp-docker-docker-local.someartifactory.com
      - sbt -DBUILD_NUMBER="${CIRCLE_BUILD_NUM}" docker:publish

Now in my jfrog account I have the image name for this project, and in my controller.yml I added this specific image.

But now I have created kubernetes clusters with 4 minions machines and one master machine, and I want to know how do I connect this docker image to this cluster to run it?

thanksss

kubectl run <app name> --image=<image name from jfrog>

如果要自动获取图像名称并启动容器,则可以运行一个特殊的容器以获取图像名称

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM