You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
840 B
23 lines
840 B
apiVersion: keda.sh/v1alpha1
|
|
kind: ScaledObject
|
|
metadata:
|
|
name: api-gateway
|
|
namespace: moh-prod
|
|
spec:
|
|
scaleTargetRef:
|
|
apiVersion: apps/v1 # Optional. Default: apps/v1
|
|
kind: Deployment # Optional. Default: Deployment
|
|
name: api-gateway # Mandatory. Must be in the same namespace as the ScaledObject
|
|
# pollingInterval: 30 # Optional. Default: 30 seconds
|
|
cooldownPeriod: 180 # Optional. Default: 300 seconds
|
|
minReplicaCount: 1 # Optional. Default: 0
|
|
maxReplicaCount: 6 # Optional. Default: 100
|
|
triggers:
|
|
- type: cpu
|
|
metadata:
|
|
type: Utilization
|
|
value: "100"
|
|
# - type: memory
|
|
# metadata:
|
|
# type: Utilization
|
|
# value: "90" |