{"id":15486760,"url":"https://github.com/chrisns/k8s-exercise","last_synced_at":"2025-07-17T08:35:54.638Z","repository":{"id":42389625,"uuid":"222416962","full_name":"chrisns/k8s-exercise","owner":"chrisns","description":"k8s interview exercise","archived":false,"fork":false,"pushed_at":"2025-06-04T11:53:12.000Z","size":43,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T19:15:18.741Z","etag":null,"topics":["docker","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/chrisns.png","metadata":{"funding":{"github":["chrisns"],"custom":["https://www.paypal.me/cns"]},"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-18T09:59:42.000Z","updated_at":"2025-06-04T11:53:13.000Z","dependencies_parsed_at":"2025-03-04T01:31:56.577Z","dependency_job_id":"d74a1d37-8b1a-475f-9a98-796dac66ce3b","html_url":"https://github.com/chrisns/k8s-exercise","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chrisns/k8s-exercise","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisns%2Fk8s-exercise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisns%2Fk8s-exercise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisns%2Fk8s-exercise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisns%2Fk8s-exercise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisns","download_url":"https://codeload.github.com/chrisns/k8s-exercise/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisns%2Fk8s-exercise/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265585620,"owners_count":23792763,"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":["docker","kubernetes"],"created_at":"2024-10-02T06:09:36.262Z","updated_at":"2025-07-17T08:35:54.621Z","avatar_url":"https://github.com/chrisns.png","language":"JavaScript","readme":"# Interview\n\n## Exercise\n\n- 🐳 dockerify the [app](./app)\n- ☸ write a deployment and deploy to minikube\n- 🍪 provide inbound access to the app\n\n## Considerations / discussion points:\n\n- The app is pretty flakey, so a:\n  - small image will be important to improve startup time on rescheduling\n  - aggressive checks will be needed to minimize bounced requests\n  - multiple replicas will be needed to minimize dropped requests\n- Network policy deny-all policy\n- internal+external TLS, auth - how sidecar pattern might help with this\n- How to run the app as non-privileged user\n- Readonly FS\n- How to inject secrets via env vars / files, which is better\n- memory + cpu allocation right sizing\n- autoscaling\n\n## use minikube with ingress\n\n```bash\nminikube start --memory=4096 --addons=ingress\n```\n\n## maybe if one can find a way to make ingress work with network policies and a cni:\n\n```bash\nminikube start --network-plugin=cni --memory=4096 --addons=ingress\nkubectl create -f https://raw.githubusercontent.com/cilium/cilium/v1.6/install/kubernetes/quick-install.yaml\n```\n","funding_links":["https://github.com/sponsors/chrisns","https://www.paypal.me/cns"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisns%2Fk8s-exercise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisns%2Fk8s-exercise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisns%2Fk8s-exercise/lists"}