简体   繁体   English

Azure Kubernetes 带有自定义路由表的服务

[英]Azure Kubernetes Service with custom routing tables

We are trying to deploy a Kubernetes cluster with help of Azure Kubernetes Service ( AKS ) to our existing virtual network.我们正在尝试在 Azure Kubernetes 服务 ( AKS ) 的帮助下将 Kubernetes 集群部署到我们现有的虚拟网络。 This virtual network has custom route tables .此虚拟网络具有自定义路由表

The deployment process is done via an external application.部署过程是通过外部应用程序完成的。 Permissions should be given to this application with help of Service Principal.应在服务主体的帮助下授予此应用程序的权限。 As per the documentation says under the Limitations section:根据文档在“限制”部分下的说明:

  • Permissions must be assigned before cluster creation, ensure you are using a service principal with write permissions to your custom subnet and custom route table.必须在创建集群之前分配权限,确保您使用的服务主体对您的自定义子网和自定义路由表具有写入权限。

We have a security team which are responsible for giving permissions to service principals , managing networking.我们有一个安全团队,负责向服务主体授予权限、管理网络。 Without knowing exactly what rules will be written into the route tables by the AKS , they wont give the permission to the proper service principal.在不确切知道AKS将哪些规则写入路由表情况下,他们不会将权限授予适当的服务主体。

Does somebody know what rules the AKS wants to write into those route tables?有人知道 AKS 想要写入这些路由表的规则吗?

The documentation you are pointing to is for a cluster using Kubenet networking.您指向的文档适用于使用Kubenet网络的集群。 Is there a reason why you don't want to use Azure CNI instead?您是否有理由不想改用Azure CNI If you are using Azure CNI, you will off course consume more IP adresses, but AKS will not need to write into the route table.如果您使用的是 Azure CNI,您当然会消耗更多的 IP 地址,但 AKS 不需要写入路由表。

With that said, if you really want to use Kubenet, the rules that will be write on the route table will depend on what you are deploying inside your cluster since Kubenet is using the route table to route the traffic... It will adds rules throughout the cluster lifecycle when you will add Pods, Services, etc.话虽如此,如果您真的想使用 Kubenet,将写入路由表的规则将取决于您在集群内部署的内容,因为 Kubenet 使用路由表来路由流量......它将添加规则在整个集群生命周期中,您将添加 Pod、Service 等。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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