{"id":21221367,"url":"https://github.com/garryone/parcellab-sre-interview","last_synced_at":"2025-03-15T01:14:12.581Z","repository":{"id":221036210,"uuid":"751315783","full_name":"GarryOne/parcellab-sre-interview","owner":"GarryOne","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-06T13:24:53.000Z","size":99,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T17:11:39.347Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/GarryOne.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}},"created_at":"2024-02-01T11:13:06.000Z","updated_at":"2024-02-01T11:15:54.000Z","dependencies_parsed_at":"2024-02-05T21:31:19.413Z","dependency_job_id":"e13ba10a-3485-4499-8c7b-5753dc9f8252","html_url":"https://github.com/GarryOne/parcellab-sre-interview","commit_stats":null,"previous_names":["garryone/parcellab-sre-interview"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GarryOne%2Fparcellab-sre-interview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GarryOne%2Fparcellab-sre-interview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GarryOne%2Fparcellab-sre-interview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GarryOne%2Fparcellab-sre-interview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GarryOne","download_url":"https://codeload.github.com/GarryOne/parcellab-sre-interview/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243668239,"owners_count":20328042,"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-20T22:27:21.158Z","updated_at":"2025-03-15T01:14:12.563Z","avatar_url":"https://github.com/GarryOne.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\nThe API was built using [Nest.js](https://github.com/nestjs/nest).\n\nThere is a `GET /` endpoint which displays a `SALUTION_TEXT` defined in the ENV.\n\n## Kubernetes configuration\n* There is `deployment-a.yaml`. \n* There is `deployment-b.yaml`. \n\n## Setup\n\n### Minikube\n\n1. Have `minikube installed`. Then run `minikube start`\n2. Switch kubectl context to minikube: `kubectl config set current-context minikube`\n\n## Docker Local Registry\n\n3. `minikube addons enable registry`\n4. `kubectl port-forward --namespace kube-system $(kubectl get po -n kube-system | grep registry | awk '{print $1}') 5000:5000 \u0026` - this will enable localhost:5000 as the **local docker registry**\n\n## Deploy\n5. Run `./docker-push.sh`\n6. Run `./deploy-k8s.sh`\n\nAlternatively, you can use `./deploy.sh` which combines both of the above.\n\n## Unit test\n* There is one unit test that assesses if `SALUTATION_TEXT` env value is being returned by the endpoint. It's running inside Dockerfile.\n\n## Test\n* `kubectl port-forward svc/nodejs-service-a -n default 8080:80` - http://localhost:8080 - you'll get `Hello Madam`\n* `kubectl port-forward svc/nodejs-service-b -n default 8081:80` - http://localhost:8081 - you'll get `Dear Sir`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarryone%2Fparcellab-sre-interview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarryone%2Fparcellab-sre-interview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarryone%2Fparcellab-sre-interview/lists"}