简体   繁体   中英

How to locally build and deploy Kubernetes in AWS?

I have made some changes in order to fix a AWS related bug in Kubernetes and I would like to test this changes in AWS.

I build Kubernetes locally using: build/run.sh make and then I tried to use kops setting as kubernetesVersion the output _output/dockerized but it doesn't work probably because kops doesn't support it.

Is there a simple way to deploy a local build kubernetes on AWS?

Is there a simple way to deploy a local build kubernetes on AWS?

If you already have an existing cluster running, then the answer is to either push your images to a common docker registry (either hub.docker.com, or ECR, or a locally hosted registry, or whatever), or to just cheat and for h in $(cluster node addresses); do docker save my-kubernetes-image:my-tag | ssh $h docker load; done for h in $(cluster node addresses); do docker save my-kubernetes-image:my-tag | ssh $h docker load; done for h in $(cluster node addresses); do docker save my-kubernetes-image:my-tag | ssh $h docker load; done , then after you have made the images available, update all the manifests to point to your new image.

If you don't already have a cluster, then I would suspect any of the existing toys, even the repugnant kops, would get you a cluster, then you can swap out the images and do so as many times as is required to verify your fix.

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