{"id":17766836,"url":"https://github.com/hashfyre/k8s-tutes","last_synced_at":"2025-03-15T13:30:59.595Z","repository":{"id":139971452,"uuid":"91904359","full_name":"Hashfyre/k8s-tutes","owner":"Hashfyre","description":"Set of Kubernetes configs intended for tutorials.","archived":false,"fork":false,"pushed_at":"2018-04-20T04:25:25.000Z","size":25,"stargazers_count":4,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T03:12:31.788Z","etag":null,"topics":["k8s","kubernetes-tutorials"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/Hashfyre.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":"2017-05-20T17:12:02.000Z","updated_at":"2021-10-20T12:24:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"0250dda2-f7fe-4ee4-b3b9-00e03019a45b","html_url":"https://github.com/Hashfyre/k8s-tutes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hashfyre%2Fk8s-tutes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hashfyre%2Fk8s-tutes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hashfyre%2Fk8s-tutes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hashfyre%2Fk8s-tutes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hashfyre","download_url":"https://codeload.github.com/Hashfyre/k8s-tutes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243735804,"owners_count":20339532,"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":["k8s","kubernetes-tutorials"],"created_at":"2024-10-26T20:37:23.222Z","updated_at":"2025-03-15T13:30:59.588Z","avatar_url":"https://github.com/Hashfyre.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes Tutorials\n\nA Set of graded Kubernetes tutorials to document self-progress and help peers\n\n### Credits\n  - Borrowed unabashedly from [janakiramm/kubernetes-101](https://github.com/janakiramm/kubernetes-101/tree/master/Docker)\n    - Not forked as I intend to create a step by step guide for myself and others in a single repo\n  - [github/rmenn](https://github.com/rmenn) for the mentorship\n\n### Build a Docker image\nReplace `DOCKER_HUB_USER` with your Docker Hub username.\n\n```\ncd Docker\ndocker build -t \u003cDOCKER_HUB_USER\u003e/web .\ndocker push \u003cDOCKER_HUB_USER\u003e/web\n```\n\n### Launch the app with Docker Compose\n```\ndocker-compose up -d\n```\n\n### Test the app\n```\ncurl localhost:5000\n```\n\n### Setup Minikube\n[macOS / OS X: Minikube](minikube.md)\n\n### 101: Pods exposed as Services\n```\ncd ../101-pod-service\nkubectl create -f db-pod.yml\nkubectl create -f db-svc.yml\nkubectl create -f web-pod.yml\nkubectl create -f web-svc.yml\n```\n\n### 102: Pods with ReplicaSet exposed as Services\nWIP\n\n### 103: Deployments exposed as Services\n```\ncd ../103-deployment-replicas-service\nkubectl create -f db-dpl.yml\nkubectl create -f db-svc.yml\nkubectl create -f web-dpl.yml\nkubectl create -f web-svc.yml\n```\n\n### Check that the Pods and Services are created\n```\nkubectl get pods\nkubectl get svc\n```\n\n### Get the NodePort for the web Service. Make a note of the port.\n```\nkubectl describe svc web\n```\n\n### Test the app by using minkube service url\n\n```\nminikube service web --url\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashfyre%2Fk8s-tutes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhashfyre%2Fk8s-tutes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashfyre%2Fk8s-tutes/lists"}