{"id":17447812,"url":"https://github.com/pmuens/serverless-knative-example","last_synced_at":"2025-04-24T03:13:35.425Z","repository":{"id":146811118,"uuid":"216052299","full_name":"pmuens/serverless-knative-example","owner":"pmuens","description":"Example on how to use the Serverless Framework to deploy Knative workloads on Kubernetes clusters","archived":false,"fork":false,"pushed_at":"2019-11-07T14:46:29.000Z","size":4,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-24T03:13:30.472Z","etag":null,"topics":["knative","kubernetes","kubernetes-cluster","serverless","serverless-framework"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmuens.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-10-18T15:16:28.000Z","updated_at":"2024-03-20T07:37:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"c1dedd7d-f1b8-45c0-9fb4-3b8401ff075d","html_url":"https://github.com/pmuens/serverless-knative-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmuens%2Fserverless-knative-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmuens%2Fserverless-knative-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmuens%2Fserverless-knative-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmuens%2Fserverless-knative-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmuens","download_url":"https://codeload.github.com/pmuens/serverless-knative-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250552075,"owners_count":21449165,"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":["knative","kubernetes","kubernetes-cluster","serverless","serverless-framework"],"created_at":"2024-10-17T19:51:54.610Z","updated_at":"2025-04-24T03:13:35.404Z","avatar_url":"https://github.com/pmuens.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Knative Example\n\nExample on how to use the [Knative provider plugin](https://github.com/serverless/serverless-knative) for the [Serverless Framework](https://github.com/serverless/serverless) to deploy Knative workloads on [Kubernetes](https://kubernetes.io) clusters.\n\n## Prerequisits\n\n- [Google Cloud SDK](https://cloud.google.com/sdk/) on your local machine\n- [Node.js](https://nodejs.org/en/) \u003e= 8 on your local machine\n- [Docker](https://www.docker.com) in your local machine\n- [Kubernetes Cluster](https://kubernetes.io) e.g. on the [Google Cloud Platform](https://cloud.google.com) (or your local machine)\n- [Knative](https://knative.dev) on your Kubernetes Cluster\n\n## Knative installation\n\nFollow [this tutorial](https://github.com/meteatamel/knative-tutorial/tree/5ac77498c5715775c8ed4c114bc1bee7ac09554e#installation) if you need to install Knative on your Kubernetes cluster.\n\n## Quickstart\n\n1. Run `serverless install --url https://github.com/pmuens/serverless-knative-example`\n1. Run `cd serverless-knative-example`\n1. Run `npm install`\n1. Create a `docker-creds.json` file in the root of this project and add your Docker Hub credentials (see below for file structure)\n1. Generate a [`kubeconfig`](https://rancher.com/docs/rancher/v2.x/en/cluster-admin/kubeconfig/) file (follow this tutorial if you use the [Google Cloud Platform](https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl#generate_kubeconfig_entry))\n1. Run `serverless deploy`\n1. Run `serverless invoke -f helloWorld`\n1. Run `serverless remove`\n\n## `docker-creds.json`\n\n```json\n{\n  \"username\": \"jdoe\",\n  \"password\": \"S0M3P455W0RD\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmuens%2Fserverless-knative-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmuens%2Fserverless-knative-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmuens%2Fserverless-knative-example/lists"}