GWS与AWS Worker节点 [英] GKE with Aws worker nodes

查看:71
本文介绍了GWS与AWS Worker节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将aws ec2节点添加到GKE群集中作为工作程序节点?

Is it possible to add aws ec2 nodes to GKE cluster as worker nodes?

我在GKE中用三个节点创建了一个群集(名为"mycluster"),现在我想将aws ec2实例添加到mycluster中作为工作节点.是否可以将其添加到现有集群中?请帮助我解决这个问题.

I created a cluster( named as "mycluster" ) in GKE with the three nodes, now i want to add aws ec2 instance to mycluster as a worker node. Is that possible to add to the existing cluster? please help me on this issue.

推荐答案

从技术上讲,这可能是可行的(如果您弄清楚了如何在AWS节点凭证上提供kubelet以加入集群),但这并不是一个很好的选择这个主意有两个原因:

It might be technically possible (if you figured out how to give a kubelet on the AWS node credentials to join the cluster) but it isn't really a great idea for a couple of reasons:

    设计
  1. Kubernetes的前提是,群集由并置的节点组成,例如,它们之间具有高速,低延迟的网络连接,并且这些节点位于同一网络上并且可以互相访问.
  2. Kubernetes集群的控制平面通常安装了特定于节点运行所在环境的扩展(通常称为云提供商扩展).虽然可以在不同的环境中运行控制平面和节点,但是您希望所有节点都在同一环境中,并且控制平面要使用为 node 环境.GKE不支持这种情况,或为您提供一种为AWS安装云提供商扩展的方法.
  1. Kubernetes is designed with the assumption that a cluster is made up of nodes that are colocated, e.g. have high speed, low latency networking between them and that nodes are on the same network and can reach each other.
  2. The control plane for a Kubernetes cluster generally has extensions installed that are specific to the environment in which the nodes are running (commonly called cloud provider extensions). While it is possible to run the control plane and the nodes in different environments, you would want all of the nodes to be in the same environment and the control plane to be configured with the cloud provider configured for the node environment. GKE does not support this scenario or provide a way for you to install the cloud provider extensions for AWS.

这篇关于GWS与AWS Worker节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆