{"id":13714375,"url":"https://github.com/mchmarny/knative-demos","last_synced_at":"2025-04-15T20:32:00.446Z","repository":{"id":77051550,"uuid":"138648229","full_name":"mchmarny/knative-demos","owner":"mchmarny","description":"Collection of Knative demos","archived":false,"fork":false,"pushed_at":"2023-05-05T02:21:51.000Z","size":15908,"stargazers_count":68,"open_issues_count":6,"forks_count":22,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-29T02:04:42.768Z","etag":null,"topics":["demo","gcp","gcp-cloud-functions","go","istio","knative","kubernetes"],"latest_commit_sha":null,"homepage":"https://github.com/knative","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mchmarny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-25T20:46:03.000Z","updated_at":"2024-08-30T16:35:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"32e4d0ba-cd11-4982-bd34-1cf7fd51794b","html_url":"https://github.com/mchmarny/knative-demos","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Fknative-demos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Fknative-demos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Fknative-demos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Fknative-demos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mchmarny","download_url":"https://codeload.github.com/mchmarny/knative-demos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249148007,"owners_count":21220460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["demo","gcp","gcp-cloud-functions","go","istio","knative","kubernetes"],"created_at":"2024-08-02T23:01:58.292Z","updated_at":"2025-04-15T20:31:55.425Z","avatar_url":"https://github.com/mchmarny.png","language":"Shell","funding_links":[],"categories":["Repositories"],"sub_categories":[],"readme":"# Knative demos\n\n\u003cimg src =\"images/logo.png\" align=\"left\" /\u003e\n\nThis repository contains a collection of demos I use in different technical sessions about Knative (e.g. [Generating Events from Your Internal Systems with Knative](https://www.youtube.com/watch?v=riq0x5xdfNg)). 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.\n\nFor the complete list of official Knative samples see [docs](https://github.com/knative/docs/tree/master/eventing/samples) repository.\n\n\n## Setup\n\nTo run these samples you need to a Knative cluster. If you don't have one, you can use the quick [setup](setup/) steps for GKE including static IP, custom domain and a few other post install configurations.\n\n\u003e For official documentation on how to install and configure Knative on variety of Kubernetes services see the [Knative install documentation](https://github.com/knative/docs/tree/master/docs/install)\n\n## Demos\n\nFollow these instructions to run the demos in the presentation:\n\n* Deploying a pre-build image\n  * [Using kubectl](kubectl-deploy/)\n  * [Using kn CLI](kn-deploy/)\n* On-cluster build using Tekton\n  * [Csharp build using Kaniko](tekton-kaniko-build/)\n  * [Java/Kotlin/Groovy/Scala build using Jib](tekton-jib-build/)\n* Cloud (serverless) builds\n  * [Build and deploy using GitHub Actions](github-action-deploy/)\n  * Build and deploy using Cloud Build\n* Configuring Knative application\n  * [Internal (cluster-local) services](service-internal/)\n  * [Automatic scaling](autoscaling/)\n  * [Limit RAM/CPU resources or require GPU](service-config/)\n* Operations (Day 2)\n  * [Traffic splitting, blue/green updates](traffic-splitting/)\n* Eventing\n  * [Processing IoT core events](eventing-iot/)\n  * [Twitter processing pipelines](eventing-pipeline/)\n\n## Monitoring\n\n\u003e Note, the monitoring/observability components require [additional install](https://github.com/knative/docs/blob/master/serving/installing-logging-metrics-traces.md)\n\nRun the following command to watch your Kubernetes pods while running the demos:\n\n```shell\nkubectl port-forward -n knative-monitoring  \\\n    $(kubectl get pods -n knative-monitoring --selector=app=grafana \\\n    --output=jsonpath=\"{.items..metadata.name}\") 3000\n```\n\n## Tracing \n\nTo enable event tracing first edit the tracing config\n\n```shell\nkubectl edit cm config-tracing -n knative-eventing\n```\n\nIn 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.\n\n```yaml\n  backend: stackdriver\n  sample-rate: \"1.0\"\n```\n\n\u003e 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).\n\nTo view traces, navigate to the [Trace UI](https://console.cloud.google.com/traces/traces) in GCP console\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmchmarny%2Fknative-demos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmchmarny%2Fknative-demos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmchmarny%2Fknative-demos/lists"}