1. 程式人生 > >Introducing Horizontal Pod Autoscaling for Amazon EKS

Introducing Horizontal Pod Autoscaling for Amazon EKS

Horizontal Pod Autoscaling for Amazon EKS

The Horizontal Pod Autoscaler and Kubernetes Metrics Server are now supported by Amazon Elastic Container Service for Kubernetes (EKS). This makes it easy to scale your Kubernetes workloads managed by Amazon EKS in response to custom metrics.

One of the benefits of using containers is the ability to quickly autoscale your application up or down. For many workloads, it’s crucial to be able to define application scaling based on custom metrics like inbound connection requests or job queue length. The Horizontal Pod Autoscaler (HPA) is a Kubernetes component that automatically scales your service based on CPU utilization or other metrics that you define through the Kubernetes Metrics Server.

How Do I Know if My Cluster Supports the Horizontal Pod Autoscaler?

To know if your EKS cluster currently has support for the Horizontal Pod Autoscaler, you can look at your cluster details in the EKS Console and look for the EKS platform version.

Amazon EKS platform versions are used to refer to a specific patch version of Kubernetes, as well as the Kubernetes API server configuration. New platform versions are released to reflect when Kubernetes patch versions are released or changes are made to how EKS has configured the Kubernetes API server. All EKS clusters created before today are on PlatformVersion “eks.1”, and new clusters created today are on PlatformVersion “eks.2”.

Clusters running PlatformVersion “eks.2” have API Aggregation enabled and, as a result, support the Horizontal Pod Autoscaler and Kubernetes Metrics Server. Please note that you must use version 0.3.0 or greater of Kubernetes Metrics Server with Amazon EKS. Over the coming weeks, all EKS clusters will be patched and will move to the “eks.2” platform version.

Why Was HPA Not Supported Previously?

Previously, HPA was not supported by Amazon EKS because any component with a dependency on API Aggregation, such as the Kubernetes Metrics Server, would not start if the core Kubernetes API server was not using Client Certificate Authentication. Amazon EKS uses only webhook authentication to provide integration with AWS Identity and Access Management (IAM).

To solve this, we made modifications to upstream Kubernetes in order to allow the Metrics Server to work with a Kubernetes API server configuration that does not use Client Certificate Authentication. We worked with the Kubernetes community to merge this change upstream and add this change into Kubernetes versions 1.9, 1.10, and 1.11. Now, the Kubernetes Metrics Server supports a Kubernetes API server that uses webhook authentication. This makes it possible to use the Kubernetes Metrics Server and Horizontal Pod Autoscaling for Amazon EKS clusters, and ensures a consistent authentication mechanism for EKS clusters that maximizes cluster security. This allows you to scale your Kubernetes services based on metrics that you define, making it easier to run production workloads with Amazon EKS.

To get started with setting up the Horizontal Pod Autoscaler on an EKS cluster, see the Kubernetes documentation.

What’s Next?

Of course, our work is not done. Any upstream codebase that has a dependency on the Aggregated API server needs to be updated to the latest Kubernetes patch releases. The next release of the Kubernetes Service Catalog will support Amazon EKS, and we will update this blog post to point to the new version when it is available. (Note: Service Catalog release 0.1.35 now supports EKS!)

We’re excited to be able to contribute to the Kubernetes community to help make it easier to run Kubernetes in the cloud. Thanks to the following community members who helped us out in these efforts:

If you’re interested in joining the team and contributing to Kubernetes or building a Kubernetes service on AWS, we’re hiring Software Development Engineers, System Development Engineers, Software Development Managers, Business Development Managers, and Product Managers.

We look forward to your feedback and suggestions in the comments.

相關推薦

Introducing Horizontal Pod Autoscaling for Amazon EKS

The Horizontal Pod Autoscaler and Kubernetes Metrics Server are now supported by Amazon Elastic Container Service for Kubernetes

kubernetes RC 與 Deployment ,Pod,Horizontal Pod Autoscaling ,replica set資源

Pod: Pod是 kubernetes 的最基本的操作單元,包含一個或多個緊密相關的容器 kubernetes 使用pod在容器之上再封裝一層,其一個很重要的原因是,docker容器之間的通訊受到docker網路機制的限制。在docker中,因為每個容器內的網路不同,在以前,往往需要通過l

自動擴容之Horizontal Pod Autoscaling(HPA)

我們通過手動執行kubectl scale命令,可以實現Pod擴容。但是,分散式系統要能夠根據當前負載的變化情況自動觸發水平擴充套件或縮容的行為,因為這一過程可能是頻繁發生的、不可預料的,所以手動控制的方式是不現實的。 - 因此,在Kubernetes1.1版本中首次釋出了這一重量級新特性

Improvements for Amazon EKS Worker Node Provisioning

Amazon Elastic Container Service for Kubernetes (EKS) provides an optimized Amazon Machine Image (AMI) and AWS CloudFormation template th

kubernetes資源物件--Horizontal Pod Autoscaling(HPA)

下文基於kubernetes 1.5.2版本編寫 概念 HPA全稱Horizontal Pod Autoscaling,即pod的水平自動擴充套件。自動擴充套件主要分為兩種,其一為水平擴充套件,針對於例項數目的增減;其二為垂直擴充套件,即單個例項可以使用的資源的增減。HPA屬於前者。 HPA的操作物件是

Amazon EKS Enables Support for Kubernetes Dynamic Admission Controllers

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Introducing support for Amazon S3 Select in the AWS SDK for PHP

We’re excited to announce support for the Amazon Simple Storage Service (Amazon S3) SelectObjectContent API with event streams in the AWS SDK for

[CSS] Showing horizontal scrollbar always for the table

nbsp overflow tab spl spa horizon clas pre idt table { display: block; overflow: scroll; width: 200px; height:95vh;

Horizontal Pod Autoscaler (HPA) 根據資源橫向擴充套件

Horizo​​ntal Pod Autoscaler根據觀察到的CPU利用率自動調整複製控制器,部署或副本集中的容器數量(或者,通過 自定義指標 支援,根據其他一些應用程式提供的指標)。請注意,Horizo​​ntal Pod Autoscaling不適用於無法縮放的物件,例如Daemon

Kubernetes(k8s)中文文件 Horizontal Pod Autoscaling_Kubernetes中文社群

Horizontal Pod Autoscaling Horizontal Pod Autoscaling可以根據CPU使用率或應用自定義metrics自動擴充套件Pod數量(支援replication controller、deployment和replica set)。 控制管理器每隔30s(

Amazon SEO: How to Rank Highly for Amazon Searches

All too often, when we think of SEO, we only think of Google. And of course you want great rankings in the search engines. However, your website isn't the

For Amazon, home is now where the Echo is

Last fall, Amazon began branching out from its core Echo speaker experience to start testing other waters for Alexa. in an effort to build a digital army o

Announcing Managed Databases for Amazon Lightsail

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

Introducing Istio Service Mesh for Microservices

Meet Istio “Istio is an implementation of a service mesh. A service mesh is the connective tissue between your services that adds additional capa

Launch an edge node for Amazon EMR to run RStudio

RStudio Server provides a browser-based interface for R and a popular tool among data scientists. Data scientist use Apache Spark cluster running

The Battle for Amazon HQ2 Was a Con

Editor’s Note: No Mercy/No Malice is a column from Professor Scott Galloway, where he shares various reflections on business, tech, and life each week.I’m

New – Encryption of Data in Transit for Amazon EFS

Amazon Elastic File System was designed to be the file system of choice for cloud-native applications that require shared access to file-based sto