12345678910111213141516171819202122232425 |
- apiVersion: keda.sh/v1alpha1
- kind: ScaledObject
- metadata:
- name: firefox-scaledobject
- spec:
- maxReplicaCount: 1
- minReplicaCount: 0
- pollingInterval: 3 # Optional. Default: 30 seconds
- cooldownPeriod: 300 # Optional. Default: 300 seconds
- scaleTargetRef:
- name: firefox
- triggers:
- - type: prometheus
- metadata:
- serverAddress: http://kube-prometheus-stack-prometheus.monitoring:9090
- metricName: nginx_ingress_controller_request_duration_seconds_count
- threshold: "0.5"
- query: max(irate(nginx_ingress_controller_request_duration_seconds_count{host="novnc.windows.softethervpn.home.wugi.info"}[5m]))
- - type: prometheus
- metadata:
- serverAddress: http://kube-prometheus-stack-prometheus.monitoring:9090
- metricName: nginx_ingress_controller_request_duration_seconds_count
- threshold: "0.5"
- query: max(irate(nginx_ingress_controller_request_duration_seconds_count{host="novnc.firefox-softethervpn.home.wugi.info"}[5m]))
|