Starting from Artifactory version 7.111, for the Artifactory chart, HPA will function only when the replica count is a minimum of 2 (i.e., in High Availability mode). For the Artifactory HA chart, HPA will operate as expected.
Here's a sample configuration:
autoscaling:
enabled: true
minReplicas: 2
maxReplicas: 3
targetCPUUtilizationPercentage: 70
metrics: |
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 70 # Target memory usage is 70% of the allocated memory per pod