[英]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. 为了修复Kubernetes中与AWS相关的错误,我进行了一些更改,并且我想在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. 我使用以下命令在本地构建Kubernetes: build/run.sh make
,然后尝试将kops设置用作kubernetesVersion
_output/dockerized
的输出,但这可能不起作用,因为kops不支持它。
Is there a simple way to deploy a local build kubernetes on AWS? 有没有一种简单的方法可以在AWS上部署本地构建kubernetes?
Is there a simple way to deploy a local build kubernetes on AWS? 有没有一种简单的方法可以在AWS上部署本地构建kubernetes?
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
如果您已经有一个现有的集群在运行,那么答案是将映像推送到通用的Docker注册表(hub.docker.com或ECR,或本地托管的注册表,或其他),或者只是作弊并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. for h in $(cluster node addresses); do docker save my-kubernetes-image:my-tag | ssh $h docker load; done
,然后使图像可用后,更新所有清单以指向新图像。
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. 如果您还没有群集,那么我会怀疑任何现有的玩具,甚至令人讨厌的鱼骨都会使您群集, 然后您可以交换图像,并根据需要进行多次验证固定。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.