Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.58 KB

File metadata and controls

32 lines (26 loc) · 1.58 KB

Deploy Scaled-App

This is a sample application that is scaled by virtue of custom metrics exported from custom metric app.

oc apply -k scaled-app
  namespace/keda-test unchanged
  serviceaccount/thanos created
  role.rbac.authorization.k8s.io/thanos-metrics-reader created
  rolebinding.rbac.authorization.k8s.io/thanos-metrics-reader created
  secret/thanos-token created
  service/static-app created
  deployment.apps/static-app created
  buildconfig.build.openshift.io/static-app created
  imagestream.image.openshift.io/static-app created
  scaledobject.keda.sh/static-app created
  triggerauthentication.keda.sh/keda-trigger-auth-prometheus created
  route.route.openshift.io/static-app created

oc get deployment,scaledobject,hpa -n keda-test

NAME                                     READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/prometheus-example-app   1/1     1            1           37m
deployment.apps/static-app               1/1     1            1           36m

NAME                              SCALETARGETKIND      SCALETARGETNAME   MIN   MAX   TRIGGERS     AUTHENTICATION                 READY   ACTIVE   FALLBACK   AGE
scaledobject.keda.sh/static-app   apps/v1.Deployment   static-app        1     10    prometheus   keda-trigger-auth-prometheus   True    False    False      36m

NAME                                                      REFERENCE               TARGETS     MINPODS   MAXPODS   REPLICAS   AGE
horizontalpodautoscaler.autoscaling/keda-hpa-static-app   Deployment/static-app   0/5 (avg)   1         10        1          36m