How to locally build and deploy Kubernetes in AWS?

12/22/2018

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?

-- b1zzu
amazon-web-services
kubernetes

1 Answer

12/23/2018

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, 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.

-- mdaniel
Source: StackOverflow