Support scaling based on memory usage also @kvz

This commit is contained in:
Abdelhadi Khiati 2018-07-07 18:00:10 +01:00
parent f17a39352c
commit fd2687779f
1 changed files with 9 additions and 1 deletions

View File

@ -112,7 +112,15 @@ spec:
name: tusd name: tusd
minReplicas: 1 minReplicas: 1
maxReplicas: 5 maxReplicas: 5
targetCPUUtilizationPercentage: 90 metrics:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 80
- type: Resource
resource:
name: memory
targetAverageValue: 1800Mi
--- ---
apiVersion: batch/v1beta1 apiVersion: batch/v1beta1
kind: CronJob kind: CronJob