{"id":13452146,"url":"https://github.com/serverless/serverless-kubeless","last_synced_at":"2025-07-29T14:32:36.686Z","repository":{"id":21042705,"uuid":"91665868","full_name":"serverless/serverless-kubeless","owner":"serverless","description":"This plugin enables support for Kubeless within the Serverless Framework.","archived":true,"fork":false,"pushed_at":"2024-12-09T15:32:16.000Z","size":1003,"stargazers_count":305,"open_issues_count":45,"forks_count":81,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-04-30T13:13:18.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/serverless.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}},"created_at":"2017-05-18T08:03:42.000Z","updated_at":"2025-01-13T04:31:59.000Z","dependencies_parsed_at":"2022-08-07T09:16:32.758Z","dependency_job_id":null,"html_url":"https://github.com/serverless/serverless-kubeless","commit_stats":null,"previous_names":["bitnami/kubeless-serverless"],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/serverless/serverless-kubeless","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless%2Fserverless-kubeless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless%2Fserverless-kubeless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless%2Fserverless-kubeless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless%2Fserverless-kubeless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serverless","download_url":"https://codeload.github.com/serverless/serverless-kubeless/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless%2Fserverless-kubeless/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267703074,"owners_count":24130464,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-07-31T07:01:14.666Z","updated_at":"2025-07-29T14:32:36.677Z","avatar_url":"https://github.com/serverless.png","language":"JavaScript","readme":"**📦 Archived - This repository is archived and preserved for reference only. No updates, issues, or pull requests will be accepted. If you have questions, please reach out to our support team.**\n\n---\n\n# Kubeless Serverless Plugin\n\nThis plugin brings [Kubeless](https://github.com/kubeless/kubeless) support within the [Serverless Framework](https://github.com/serverless).\n\nKubeless is a Kubernetes-native Serverless solution.\n\n## Pre requisites\n\nMake sure you have a kubernetes endpoint running and kubeless installed. You can find the installation intructions [here](https://github.com/kubeless/kubeless#installation).\n\nOnce you have Kubeless running in your cluster you can install serverless\n\n```bash\n$ npm install serverless -g\n```\n\n## Try out the example\n\nClone this repo and check the example function\n\n```bash\n$ git clone https://github.com/serverless/serverless-kubeless\n$ cd serverless-kubeless/examples/get-python\n$ cat serverless.yml\nservice: hello\n\nprovider:\n  name: kubeless\n  runtime: python2.7\n\nplugins:\n  - serverless-kubeless\n\nfunctions:\n  hello:\n    description: 'Hello function'\n    handler: handler.hello\n```\n\nDownload dependencies\n\n```bash\n$ npm install\n```\n\nDeploy function.\n\n```bash\n$ serverless deploy\nServerless: Packaging service...\nServerless: Excluding development dependencies...\nServerless: Deploying function hello...\nServerless: Function hello successfully deployed\n```\n\nThe function will be deployed to k8s via kubeless.\n\n```bash\n$ kubectl get function\nNAME      AGE\nhello     50s\n\n$ kubectl get pod\nNAME                     READY     STATUS    RESTARTS   AGE\nhello-1815473417-1ttt7   1/1       Running   0          1m\n```\n\nNow you will be able to call the function:\n\n```bash\n$ serverless invoke -f hello -l\nServerless: Calling function: hello...\n--------------------------------------------------------------------\nhello world\n```\n\nYou can also check the logs for the function:\n\n```bash\n$ serverless logs -f hello\n172.17.0.1 - - [12/Jul/2017:09:47:18 +0000] \"GET /healthz HTTP/1.1\" 200 2 \"\" \"Go-http-client/1.1\" 0/118\n172.17.0.1 - - [12/Jul/2017:09:47:21 +0000] \"GET /healthz HTTP/1.1\" 200 2 \"\" \"Go-http-client/1.1\" 0/93\n172.17.0.1 - - [12/Jul/2017:09:47:24 +0000] \"GET /healthz HTTP/1.1\" 200 2 \"\" \"Go-http-client/1.1\" 0/108\n172.17.0.1 - - [12/Jul/2017:09:47:25 +0000] \"GET / HTTP/1.1\" 200 11 \"\" \"\" 0/316\n```\n\nOr you can obtain the function information:\n\n```bash\n$ serverless info\nService Information \"hello\"\nCluster IP:  10.0.0.51\nType:  ClusterIP\nPorts:\n  Name:  http-function-port\n  Protocol:  TCP\n  Port:  8080\n  Target Port:  8080\nFunction Info\nDescription: Hello function\nHandler:  handler.hello\nRuntime:  python2.7\nTrigger: HTTP\nDependencies:\n```\n\nYou can access the function through its HTTP interface as well using `kubectl proxy` and accessing:\n\n```bash\n$ curl http://127.0.0.1:8001/api/v1/namespaces/default/services/hello/proxy/\nhello world\n```\n\nIf you have a change in your function and you want to redeploy it you can run:\n\n```bash\n$ serverless deploy function -f hello\nServerless: Redeploying hello...\nServerless: Function hello successfully deployed\n```\n\nFinally you can remove the function.\n\n```bash\n$ serverless remove\nServerless: Removing function: hello...\nServerless: Function hello successfully deleted\n```\n\n## Kubernetes secrets\n\nKubernetes secret objects let you store and manage sensitive information, such as passwords, OAuth tokens, and ssh keys.\nPutting this information in a secret is safer and more flexible than putting it verbatim in a Pod definition or in a container image. To use secrets follow the next steps:\n\n1. Create a K8s secret:\n   `kubectl create secret generic secret-file --from-file=secret.txt -n namespace-name`\n\n2. Add the secret key into the provider definition in the serverless.yml file below the `secrets` key. You can specify an array of secrets and they will be mounted at root level in the pod file system using the path `/\u003csecret-name\u003e`:\n\n```yaml\n...\nfunctions:\n  my-handler:\n    secrets:\n      - secret-file\n    ...\n```\n\n3. Now inside your pod, you will be able to access the route `/secret-file/secret.txt`.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless%2Fserverless-kubeless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserverless%2Fserverless-kubeless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless%2Fserverless-kubeless/lists"}