controller:autoscaling:enabled: trueminReplicas: 10maxReplicas: 100targetCPUUtilizationPercentage: 50targetMemoryUtilizationPercentage: 50behavior: # Quick scale-out to handle traffic peaks, slow scale-in to leave a buffer to avoid abnormal trafficscaleUp:stabilizationWindowSeconds: 300policies:- type: Percentvalue: 900periodSeconds: 15 # Allowing scale-out up to 9 times the current number of replicas every 15 secondsscaleDown:stabilizationWindowSeconds: 300policies:- type: Podsvalue: 1periodSeconds: 600 # Allowing scale-in of only one pod at most every 10 minutes
replicaCount:controller:replicaCount: 50
controller:topologySpreadConstraints: # Policy to maximize spreading- 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
Feedback