Thanks Beata for the reply!

On Wed, Dec 20, 2017 at 8:32 PM, 'Beata Skiba' via Kubernetes user
discussion and Q&A <kubernetes-users@googlegroups.com> wrote:

> Custom Metrics are unfortunately not available on GKE 1.8.4, they will be
> available with 1.9.0
>
>
> On Thursday, December 14, 2017 at 4:59:16 AM UTC+1, bibinw...@gmail.com
> wrote:
>>
>> I am working on a use case where I have to scale my pods based on custom
>> metrics.
>>
>> Kubernetes Env: GKE 1.8.4 with alpha features enabled
>>
>> I am getting error in HPA. Here is output of HPA.
>>
>> Name:
>>  sample-tomcat-app-hpa
>> Namespace:
>> default
>> Labels:
>> Annotations:
>> CreationTimestamp:                                                   Wed,
>> 13 Dec 2017 20:06:22 +0530
>> Reference:
>> Deployment/sample-tomcat-app
>> Metrics:                                                             (
>> current / target )
>>   "tomcat_threadpool_connectioncount" on pods:
>> unknown / 2
>>   "tomcat_threadpool_connectioncount" on Service/sample-tomcat-app:
>>  unknown / 2
>>   resource cpu on pods  (as a percentage of request):
>>  unknown / 50%
>> Min replicas:                                                        2
>> Max replicas:                                                        10
>> Conditions:
>>   Type           Status  Reason               Message
>>   ----           ------  ------               -------
>>   AbleToScale    True    SucceededGetScale    the HPA controller was able
>> to get the target's current scale
>>   ScalingActive  False   FailedGetPodsMetric  the HPA was unable to
>> compute the replica count: did not receive metrics for any ready pods
>> Events:
>>   Type     Reason                        Age               From
>>             Message
>>   ----     ------                        ----              ----
>>             -------
>>   Warning  FailedGetPodsMetric           14s (x8 over 3m)
>>  horizontal-pod-autoscaler  did not receive metrics for any ready pods
>>   Warning  FailedComputeMetricsReplicas  14s (x8 over 3m)
>>  horizontal-pod-autoscaler  failed to get pods metric value: did not
>> receive metrics for any ready pods
>>
>>
>> Here is the list of enabled API's
>>
>>
>> apiextensions.k8s.io/v1beta1
>> apiregistration.k8s.io/v1beta1
>> apps/v1beta1
>> apps/v1beta2
>> authentication.k8s.io/v1
>> authentication.k8s.io/v1beta1
>> authorization.k8s.io/v1
>> authorization.k8s.io/v1beta1
>> autoscaling/v1
>> autoscaling/v2beta1
>> batch/v1
>> batch/v1beta1
>> certificates.k8s.io/v1beta1
>> custom.metrics.k8s.io/v1beta1
>> extensions/v1beta1
>> monitoring.coreos.com/v1
>> networking.k8s.io/v1
>> policy/v1beta1
>> rbac.authorization.k8s.io/v1
>> rbac.authorization.k8s.io/v1beta1
>> storage.k8s.io/v1
>> storage.k8s.io/v1beta1
>>
>> I am not sure if --horizontal-pod-autoscaler-use-rest-clients=true is
>> set in the controller manager. As GKE is a managed kubernetes cluster, we
>> do not have an option to edit the master configurations. Is this option
>> enabled in latest clusters?
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Kubernetes user discussion and Q&A" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/kubernetes-users/3hHvmK_5AjE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> kubernetes-users+unsubscr...@googlegroups.com.
> To post to this group, send email to kubernetes-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
  • [kubern... bibinwilsonn
    • [k... 'Beata Skiba' via Kubernetes user discussion and Q&A
      • ... Bibin Wilson
        • ... dzolo via Kubernetes user discussion and Q&A
          • ... parsifal . 47
            • ... 'Beata Skiba' via Kubernetes user discussion and Q&A
              • ... Raju Dawadi
                • ... 'Aleksandra Malinowska' via Kubernetes user discussion and Q&A

Reply via email to