{"id":19865637,"url":"https://github.com/openfaas/mass-deploy","last_synced_at":"2025-05-02T05:31:47.629Z","repository":{"id":201016157,"uuid":"704100203","full_name":"openfaas/mass-deploy","owner":"openfaas","description":"Deploy functions to OpenFaaS en-masse","archived":false,"fork":false,"pushed_at":"2025-03-26T09:21:52.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T23:06:08.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openfaas.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":"2023-10-12T14:34:37.000Z","updated_at":"2025-03-26T09:21:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"ae1acbe0-6d6c-44b2-a92a-fdac6502ed22","html_url":"https://github.com/openfaas/mass-deploy","commit_stats":null,"previous_names":["openfaas/mass-deploy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfaas%2Fmass-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfaas%2Fmass-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfaas%2Fmass-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfaas%2Fmass-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openfaas","download_url":"https://codeload.github.com/openfaas/mass-deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251992923,"owners_count":21677022,"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":[],"created_at":"2024-11-12T15:23:31.699Z","updated_at":"2025-05-02T05:31:42.613Z","avatar_url":"https://github.com/openfaas.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## mass-deploy\n\nDeploy functions to OpenFaaS en-masse\n\nThis tool exists to load test the OpenFaaS control-plane with a large number of functions.\n\nExample usage, to deploy the `env` function 100 times\n\nThe default `--action` is `create`, so can be omitted.\n\n```bash\ngo run . -image ghcr.io/openfaas/alpine:latest \\\n    -fprocess env \\\n    --workers 10 \\\n    --gateway http://127.0.0.1:8081 \\\n    --functions 1000 \\\n    --start-at 0\n```\n\nIf you're deploying 1000 functions and want to split that into two batches, set the `--start-at` flag to `0`, then `500` for the second batch.\n\nExample usage to delete the functions created earlier:\n\n```bash\ngo run . -image ghcr.io/openfaas/alpine:latest \\\n    -fprocess env \\\n    --workers 5 \\\n    --gateway http://127.0.0.1:8081 \\\n    --functions 100 \\\n    --start-at 0 \\\n    --action=delete\n```\n\nLog tailing without stern:\n\n```\nkubectl logs -l app=gateway  -c operator -n openfaas   -f --prefix\n```\n\nPort forward OpenFaaS:\n\n```bash\nexport OPENFAAS_URL=http://127.0.0.1:8081\n\nkubectl port-forward -n openfaas svc/gateway 8081:8080 \u0026\n\n# If basic auth is enabled, you can now log into your gateway:\nPASSWORD=$(kubectl get secret -n openfaas basic-auth -o jsonpath=\"{.data.basic-auth-password}\" | base64 --decode; echo)\necho -n $PASSWORD | faas-cli login --username admin --password-stdin\n```\n\n## Status\n\nInternal testing tool for the OpenFaaS Ltd team and contributors\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfaas%2Fmass-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenfaas%2Fmass-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfaas%2Fmass-deploy/lists"}