apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
  name: test-scaledobject
  labels:
    deploymentName: podtato-head-entry
spec:
  maxReplicaCount: 3
  scaleTargetRef:
    name: podtato-head-entry
  triggers:
    - type: metrics-api
      metadata:
        targetValue: "1"
        valueLocation: 'value'
        url: (replace_all('http://metrics-operator-service.keptn-system.svc.cluster.local:9999/api/v1/metrics/namespace/test', 'namespace', ($namespace)))
        unsafeSsl: "true"
