自动缩放在Azure Kubernetes服务(AKS)中不起作用

时间:2018-06-06 14:04:59

标签: azure deployment kubernetes autoscaling pod

我搜索了很多博客,文档和tutos,但无法解决此问题。

在deployment.yml

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

用于autoscaling.yml文件:

 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

0 个答案:

没有答案