{"id":19871619,"url":"https://github.com/millsoft/kubernetes-test","last_synced_at":"2026-03-03T08:43:35.137Z","repository":{"id":82654421,"uuid":"464239182","full_name":"millsoft/kubernetes-test","owner":"millsoft","description":"A kubernetes test","archived":false,"fork":false,"pushed_at":"2022-02-27T20:40:57.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T00:56:39.947Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/millsoft.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,"publiccode":null,"codemeta":null}},"created_at":"2022-02-27T19:58:20.000Z","updated_at":"2022-02-27T19:58:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"c531b7fc-481a-4e57-8e20-68df11018294","html_url":"https://github.com/millsoft/kubernetes-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/millsoft/kubernetes-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/millsoft%2Fkubernetes-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/millsoft%2Fkubernetes-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/millsoft%2Fkubernetes-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/millsoft%2Fkubernetes-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/millsoft","download_url":"https://codeload.github.com/millsoft/kubernetes-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/millsoft%2Fkubernetes-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30038536,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T06:58:30.252Z","status":"ssl_error","status_checked_at":"2026-03-03T06:58:15.329Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-12T16:12:57.855Z","updated_at":"2026-03-03T08:43:35.121Z","avatar_url":"https://github.com/millsoft.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes Test\n\na simple playground for playing around with kubernetes.\nTesting with minikube and kubectl on one machine.\n\n## Requirements\na machine with at least 2 cores and 2GB RAM. And docker or any other supported container system. Here I am using docker.\n\n## Start minikube\n\n\n```bash\nminikube start --driver docker\n# check if all is running\nminikube status\n```\n\n\n## Working with pods\n\n### start everything\n\n```bash\nkubectl apply -f mongo-config.yaml\nkubectl apply -f mongo-secret.yaml\nkubectl apply -f mongo.yaml\nkubectl apply -f webapp.yaml\n```\n\n\n### check the status\n\n```bash\nkubectl get all\n```\n\noutput:\n\n```\nNAME                                     READY   STATUS    RESTARTS   AGE\npod/mongo-deployment-564b4bdfdf-gt46p    1/1     Running   0          5m16s\npod/webapp-deployment-56dbf5d695-442sz   1/1     Running   0          4m26s\n\nNAME                     TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE\nservice/kubernetes       ClusterIP   10.96.0.1       \u003cnone\u003e        443/TCP          49m\nservice/mongo-service    ClusterIP   10.104.152.87   \u003cnone\u003e        27017/TCP        5m16s\nservice/webapp-service   NodePort    10.109.83.118   \u003cnone\u003e        3000:30100/TCP   4m26s\n\nNAME                                READY   UP-TO-DATE   AVAILABLE   AGE\ndeployment.apps/mongo-deployment    1/1     1            1           5m16s\ndeployment.apps/webapp-deployment   1/1     1            1           4m26s\n\nNAME                                           DESIRED   CURRENT   READY   AGE\nreplicaset.apps/mongo-deployment-564b4bdfdf    1         1         1       5m16s\nreplicaset.apps/webapp-deployment-56dbf5d695   1         1         1       4m26s\n```\n\n### check secrets\n\n```bash\nkubectl get secret\n```\n\noutput:\n\n```\nNAME                  TYPE                                  DATA   AGE\ndefault-token-p4bqj   kubernetes.io/service-account-token   3      51m\nmongo-secret          Opaque                                2      8m22s\n```\n\n### get details for a service\n\nhere as example for service \"webapp-service\"\n(all running services are visible for example in `kubectl get all`)\n\n```bash\nkubectl describe service webapp-service\n```\n\nthe describe param can also show many other infos, eg about the pod:\n\n```bash\nkubectl describe pod some-pod-id\n```\n\n### get the logs of a pod\n\n```bash\nkubectl logs some-pod-id\n```\nthis will return the last log entries. To get a live stream of logs, append `-f`  th that command.\n\n### get the IP\n\nto get the public ip for the container by using minikube:\n\n```bash\nminikube ip\n```\n\nor with cubectl:\n\n```bash\nkubectl get note -o wide\n```\n\noutput:\n\n```\nNAME       STATUS   ROLES                  AGE   VERSION   INTERNAL-IP    EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION    CONTAINER-RUNTIME\nminikube   Ready    control-plane,master   63m   v1.23.3   192.168.49.2   \u003cnone\u003e        Ubuntu 20.04.2 LTS   5.10.0-11-amd64   docker://20.10.12\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmillsoft%2Fkubernetes-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmillsoft%2Fkubernetes-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmillsoft%2Fkubernetes-test/lists"}