Autoscaling not working in Azure Kubernetes Service(AKS)

6/6/2018

I searched many blogs, docs and tutos but not able to fix this issue.

In the deployment.yml

  resources:
    requests:
       memory: 64Mi
       cpu: 128m
    limits:
       memory: 128Mi
       cpu: 256m

for autoscaling.yml file:

 apiVersion: autoscaling/v1
 kind: HorizontalPodAutoscaler
 metadata:
    name: dotnetapi
    namespace: default
 spec:
   scaleTargetRef:
      apiVersion: apps/v1beta1
      kind: Deployment
      name: dotnetapi
   minReplicas: 1
   maxReplicas: 7
   targetCPUUtilizationPercentage: 50

enter image description here

enter image description here

-- Ratul
autoscaling
azure
deployment
kubernetes
pod

0 Answers