产品动态
公告
产品发布记录
controller:autoscaling:enabled: trueminReplicas: 10maxReplicas: 100targetCPUUtilizationPercentage: 50targetMemoryUtilizationPercentage: 50behavior: # 快速扩容应对流量洪峰,缓慢缩容预留 buffer 避免流量异常scaleUp:stabilizationWindowSeconds: 300policies:- type: Percentvalue: 900periodSeconds: 15 # 每 15s 最多允许扩容 9 倍于当前副本数scaleDown:stabilizationWindowSeconds: 300policies:- type: Podsvalue: 1periodSeconds: 600 # 每 10 分钟最多只允许缩掉 1 个 Pod
replicaCount:controller:replicaCount: 50
controller:topologySpreadConstraints: # 尽量打散的策略- labelSelector:matchLabels:app.kubernetes.io/name: '{{ include "ingress-nginx.name" . }}'app.kubernetes.io/instance: '{{ .Release.Name }}'app.kubernetes.io/component: controllertopologyKey: topology.kubernetes.io/zonemaxSkew: 1whenUnsatisfiable: ScheduleAnyway- labelSelector:matchLabels:app.kubernetes.io/name: '{{ include "ingress-nginx.name" . }}'app.kubernetes.io/instance: '{{ .Release.Name }}'app.kubernetes.io/component: controllertopologyKey: kubernetes.io/hostnamemaxSkew: 1whenUnsatisfiable: ScheduleAnyway
controller:nodeSelector:tke.cloud.tencent.com/nodepool-id: np-********
controller:resources:requests:cpu: 500mmemory: 512Milimits:cpu: 1000mmemory: 1Gi
controller:resources:requests:cpu: 1000mmemory: 2Gi
文档反馈