是否可以根据 AKS 中的输入参数动态扩展 pods?
Is it possible to scale up pods dynamically based on input parameters in AKS?
我是 Kubernetes 世界的新手,我对我想做的实现有一些疑问。
我有以下场景:我有 200 个执行某些业务逻辑的 worker 实例,区分它们的唯一之处是输入参数。
我正在考虑使用 AKS 根据输入参数动态扩展此基础设施,仅当存在对输入参数“XYZ”的工作人员的需求时才创建新的 pod。
简单架构稿:
我有一个 API 接收请求,并在这个请求中使用 base,编排器为正确的工作人员发送请求。
所以我想知道这种类型的架构是否适用于 AKS,是否是一个好的方法。
这是您可以将 Azure Functions 与 ACI
or with KEDA
结合使用以根据需求自动对容器进行评分的场景之一。
Use the AKS virtual node to provision pods inside Azure Container
Instances that start in seconds. This enables AKS to run with just
enough capacity for your average workload. As you run out of capacity
in your AKS cluster, scale out additional pods in Azure Container
Instances without additional servers to manage.
这是我在 Scale Applications with Kuberenetes-based Event Driven AutoScaling
上的博客
您可以使用 Kubernetes ingress controller 做到这一点
https://www.nginx.com/products/nginx/kubernetes-ingress-controller/
这是在 Azure Kubernetes 上设置的方法
我是 Kubernetes 世界的新手,我对我想做的实现有一些疑问。
我有以下场景:我有 200 个执行某些业务逻辑的 worker 实例,区分它们的唯一之处是输入参数。
我正在考虑使用 AKS 根据输入参数动态扩展此基础设施,仅当存在对输入参数“XYZ”的工作人员的需求时才创建新的 pod。
简单架构稿:
我有一个 API 接收请求,并在这个请求中使用 base,编排器为正确的工作人员发送请求。
所以我想知道这种类型的架构是否适用于 AKS,是否是一个好的方法。
这是您可以将 Azure Functions 与 ACI
or with KEDA
结合使用以根据需求自动对容器进行评分的场景之一。
Use the AKS virtual node to provision pods inside Azure Container Instances that start in seconds. This enables AKS to run with just enough capacity for your average workload. As you run out of capacity in your AKS cluster, scale out additional pods in Azure Container Instances without additional servers to manage.
这是我在 Scale Applications with Kuberenetes-based Event Driven AutoScaling
上的博客您可以使用 Kubernetes ingress controller 做到这一点
https://www.nginx.com/products/nginx/kubernetes-ingress-controller/
这是在 Azure Kubernetes 上设置的方法