{"id":16345286,"url":"https://github.com/inscapist/simple-ping","last_synced_at":"2025-06-30T02:34:08.371Z","repository":{"id":129899684,"uuid":"360403307","full_name":"inscapist/simple-ping","owner":"inscapist","description":"Simply returns HTTP 200. Meant to be used together with NodePort service, as node health check","archived":false,"fork":false,"pushed_at":"2021-04-25T05:37:41.000Z","size":108,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T13:11:29.041Z","etag":null,"topics":["haskell","health-check","healthcheck","kubernetes","nix","nix-shell","nixpkgs"],"latest_commit_sha":null,"homepage":"","language":"Nix","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/inscapist.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":"2021-04-22T05:34:33.000Z","updated_at":"2024-11-14T09:02:35.000Z","dependencies_parsed_at":"2023-04-25T21:31:48.884Z","dependency_job_id":null,"html_url":"https://github.com/inscapist/simple-ping","commit_stats":null,"previous_names":["inscapist/simple-ping"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/inscapist/simple-ping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inscapist%2Fsimple-ping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inscapist%2Fsimple-ping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inscapist%2Fsimple-ping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inscapist%2Fsimple-ping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inscapist","download_url":"https://codeload.github.com/inscapist/simple-ping/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inscapist%2Fsimple-ping/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262699068,"owners_count":23350234,"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":["haskell","health-check","healthcheck","kubernetes","nix","nix-shell","nixpkgs"],"created_at":"2024-10-11T00:30:38.512Z","updated_at":"2025-06-30T02:34:08.341Z","avatar_url":"https://github.com/inscapist.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Ping\n\nAll this project does is to serve an API that returns 200 status to the caller.\n\nThis is useful to be used when paired with NodePort service, so that load balancer can determine healthy nodes to route to.\n\n## Getting started\n\nYou need nix. And if you have direnv (i am using Doom emacs) and lorri, you don't need to do anything else. This is your \"virtualenv\" with batteries included. Haskell language server, hlint, stylish-haskell, etc.\n\n```sh\n# requirements\nnix-env -iA nixpkgs.lorri\nnix-env -iA nixpkgs.direnv\n```\n\n- Refer this [Makefile](./Makefile) for command usage\n\n- Refer [k8s](./k8s) on how to deploy this on kubernetes\n\n## Docker\n\nhttps://hub.docker.com/r/sagittaros/simple-ping\n\n```sh\ndocker run -p 3000:3000 simple-ping\n```\n\n## FAQs\n\n#### Why not just let load balancer calls /healthz of the web app?\n\nWell, imagine that you are running private cluster (mongodb, redis) that is not meant to serve web requests. Yet you need the health ping capability in order to use Health Checks for Auto Scaling instances.\n\nhttps://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html\n\n![ELB](./screenshot-elb.png)\n\n#### Is this project an overkill?\n\nCertainly, I am learning Nix.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finscapist%2Fsimple-ping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finscapist%2Fsimple-ping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finscapist%2Fsimple-ping/lists"}