How do I set up Metrics Server and Horizontal Pod Autoscaler on an Amazon EKS cluster?



Find more details in the AWS Knowledge Center: https://amzn.to/2PgZ0qI
Srinivas, an AWS Cloud Support Engineer, shows you how to set up Metrics Server and Horizontal Pod Autoscaler on an Amazon EKS cluster.

source

4 thoughts on “How do I set up Metrics Server and Horizontal Pod Autoscaler on an Amazon EKS cluster?”
  1. Hi Team, I'm having the issue while cloning the repository from GitHub, but I can't able to see the deploy directory. The main k8s team has changed or something else? can anyone help me out ..

  2. Thanks nicely explained. Tried the same but not working in my case, the metric server is failing to fetch the metric here are some logs

    I0715 06:57:20.873052 1 serving.go:312] Generated self-signed cert (apiserver.local.config/certificates/apiserver.crt, apiserver.local.config/certificates/apiserver.key)
    W0715 06:57:21.506843 1 authentication.go:281] Cluster doesn't provide client-ca-file in configmap/extension-apiserver-authentication in kube-system, so client certificate authentication won't work.
    I0715 06:57:21.525281 1 secure_serving.go:116] Serving securely on [::]:443
    E0715 07:00:21.553384 1 manager.go:111] unable to fully collect metrics: unable to fully scrape metrics from source kubelet_summary:ip-192-168-88-139.us-west-2.compute.internal: unable to get CPU for container "hpa-example" in pod default/php-apache-64cdb4fdc4-nmmkt on node "ip-192-168-88-139.us-west-2.compute.internal", discarding data: missing cpu usage metric
    E0715 07:01:02.559634 1 reststorage.go:147] unable to fetch pod metrics for pod default/php-apache-5b84df5f6f-pvcwn: no metrics known for pod
    E0715 07:01:17.569580 1 reststorage.go:147] unable to fetch pod metrics for pod default/php-apache-5b84df5f6f-pvcwn: no metrics known for pod

    event after starting load
    NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE
    php-apache Deployment/php-apache <unknown>/50% 1 10 1 37s
    php-apache Deployment/php-apache 0%/50% 1 10 1 45s

Leave a Reply

Your email address will not be published.

Captcha loading...