GithubHelp home page GithubHelp logo

zroubalik / keda-openshift-examples Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 21.0 2.9 MB

Examples on application autoscaling by KEDA on OpenShift

License: Apache License 2.0

Dockerfile 6.18% Makefile 8.69% Go 82.79% Shell 2.34%

keda-openshift-examples's Introduction

Example applications that presents KEDA capabilities on OpenShift

KEDA is a CNCF project to simplify Kubernetes event-drive autoscaling, for details please refer to https://keda.sh.

  • kafka directory contains Kafka related examples
  • prometheus directory contains Prometheus related examples

Any contributions are more than welcome :)

keda-openshift-examples's People

Contributors

gauron99 avatar zroubalik avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

keda-openshift-examples's Issues

Did not get kafka-amqstreams-consumer-scaledobject in step 5

In step 5. Deploy ScaledObject to enable Kafka Consumer application autoscaling
After I
oc apply -f scaledobject.yaml

I can not get

NAME                                     SCALETARGETKIND      SCALETARGETNAME             MIN   MAX   TRIGGERS   AUTHENTICATION   READY   ACTIVE   FALLBACK   AGE
kafka-amqstreams-consumer-scaledobject   apps/v1.Deployment   kafka-amqstreams-consumer   0     5     kafka                       True    False    False      17s

In scaledobject.yaml, I can only see ScaledObject with a name example, was it a correct scaledobject.yaml uploaded?

Thanks

x509: certificate signed by unknown authority

Hi,

I'm passing the secret ca.crt reference in my triggerauth CR but I'm getting that x509 problem in the metric server logs. This is a AWS ROSA cluster with the default domain (self-signed cert)

kind: TriggerAuthentication
metadata:
  name: thanos
  namespace: sample-ns
spec:
  secretTargetRef:
    - key: token
      name: keda-token
      parameter: bearerToken
    - key: ca.crt
      name: keda-token
      parameter: ca


apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
  name: echo-service-spring-boot
spec:
  cooldownPeriod: 100
  maxReplicaCount: 100
  minReplicaCount: 2
  pollingInterval: 30
  scaleTargetRef:
    apiVersion: apps.openshift.io/v1
    kind: DeploymentConfig
    name: echo-service-spring-boot
  triggers:
    - authenticationRef:
        name: thanos
      metadata:
        metricName: http_requests_total
        query: >-
          sum(rate(http_server_requests_seconds_count{application="echo-service-spring-boot"}[1m]))
        serverAddress: 'https://thanos-querier.openshift-monitoring.svc.cluster.local:9091'
        threshold: '10'
      type: prometheus`


I'm able to query from POSTMAN using the same bearer token, and the HTTPS route. 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.