Code Monkey home page Code Monkey logo

knative-demos's Introduction

Knative demos

This repository contains a collection of demos I use in different technical sessions about Knative (e.g. Generating Events from Your Internal Systems with Knative). I try to keep these updated as new versions of Knative get released but sometimes I may get behind. Do let me know (issue) if you find something that's not working.

For the complete list of official Knative samples see docs repository.

Setup

To run these samples you need to a Knative cluster. If you don't have one, you can use the quick setup steps for GKE including static IP, custom domain and a few other post install configurations.

For official documentation on how to install and configure Knative on variety of Kubernetes services see the Knative install documentation

Demos

Follow these instructions to run the demos in the presentation:

Monitoring

Note, the monitoring/observability components require additional install

Run the following command to watch your Kubernetes pods while running the demos:

kubectl port-forward -n knative-monitoring  \
    $(kubectl get pods -n knative-monitoring --selector=app=grafana \
    --output=jsonpath="{.items..metadata.name}") 3000

Tracing

To enable event tracing first edit the tracing config

kubectl edit cm config-tracing -n knative-eventing

In this case I'm using Stackdriver so just add the following two lines. You can also use zipkin in which case you will also have to define the back-end. See the config map's comments for details.

  backend: stackdriver
  sample-rate: "1.0"

If you're tracing high volume events you may want to adjust the sample-rate to something smaller like 0.1 (10% of all events).

To view traces, navigate to the Trace UI in GCP console

knative-demos's People

Contributors

mchmarny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

knative-demos's Issues

simple/app.yaml is no longer simple

As of f5c1f49 the app.yaml for the simple demo installs rester-tester and not simple-app.

This looks to be a bug but I'm raising an issue rather than a PR in case it was deliberate.

Events not Routed

When i configured the store.yaml , it created the deployments and services and triggers , but the broker fails to reach to the Serving service.

"Post http://eventstore.demo.svc.cluster.local: dial tcp: lookup eventstore.demo.svc.cluster.local on 10.98.0.10:53: no such host"

When i manually configure the service as regular Serving , then the service is working as expected. I want the behavior of serverless when events comes in. Not sure what iam doing wrong.

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.