futurewei-cloud / alcor

Alcor: Cloud native SDN platform powered by Kubernetes and Istio
MIT License
32 stars 33 forks source link

[Scalability] Enable Horizontal Pod Autoscaler (HPA) for Alcor deployment #679

Open kevin-zhonghao opened 3 years ago

kevin-zhonghao commented 3 years ago
  1. Configure cluster and network configuration to meet the requirements on using Metrics Server:

    • Metrics Server must be reachable from kube-apiserver by container IP address (or node IP if hostNetwork is enabled).
    • The kube-apiserver must enable an aggregation layer.
    • Nodes must have Webhook authentication and authorization enabled.
    • Kubelet certificate needs to be signed by cluster Certificate Authority (or disable certificate validation by passing --kubelet-insecure-tls to Metrics Server)
    • Container runtime must implement a container metrics RPCs (or have cAdvisor support)
  2. Deploy Metrics-Server in cluster.

  3. Deploy Horizontal Pod Autoscaler for each deployment with customized hpa yaml.

xieus commented 2 years ago

Some preliminary test in the Medina cluster appears to be quite promising.

The current 0.19 release already contains a lot of new features therefore we decided to move this feature to 12/30 release.

xieus commented 2 years ago

@yanmo96 We need to test this PR and get it merged by 2/28.