{"id":16112581,"url":"https://github.com/mfvanek/minikube-demo","last_synced_at":"2025-04-13T21:41:31.628Z","repository":{"id":160624153,"uuid":"618110392","full_name":"mfvanek/minikube-demo","owner":"mfvanek","description":"Demo app for testing liveness and readiness probes in minikube","archived":false,"fork":false,"pushed_at":"2025-04-09T06:30:54.000Z","size":443,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T10:56:03.367Z","etag":null,"topics":["docker","gatling","gradle","gradle-8","hacktoberfest","java-17","kotlin-dsl","kubernetes","minikube","spring-boot","spring-boot-3"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfvanek.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":"2023-03-23T19:19:38.000Z","updated_at":"2025-04-09T06:30:57.000Z","dependencies_parsed_at":"2023-12-03T09:24:59.943Z","dependency_job_id":"233ecafa-7bec-4633-aa67-f5f869a08977","html_url":"https://github.com/mfvanek/minikube-demo","commit_stats":{"total_commits":101,"total_committers":3,"mean_commits":"33.666666666666664","dds":"0.13861386138613863","last_synced_commit":"473a4ec6ab4ea871f89b8fc0154316526f2e686f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfvanek%2Fminikube-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfvanek%2Fminikube-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfvanek%2Fminikube-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfvanek%2Fminikube-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfvanek","download_url":"https://codeload.github.com/mfvanek/minikube-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788865,"owners_count":21161726,"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","gatling","gradle","gradle-8","hacktoberfest","java-17","kotlin-dsl","kubernetes","minikube","spring-boot","spring-boot-3"],"created_at":"2024-10-09T20:08:34.050Z","updated_at":"2025-04-13T21:41:31.604Z","avatar_url":"https://github.com/mfvanek.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo app for testing Liveness and Readiness Probes in minikube\nSee https://cloud.redhat.com/blog/liveness-and-readiness-probes\n\n## Custom readiness probe\n```shell\ncurl -X GET http://localhost:8090/actuator/health\n```\n\n```shell\ncurl -X GET http://localhost:8080/readyz\n```\n\n## Set custom delay for health check response\n```shell\ncurl -X PUT http://localhost:8080/delay -H \"Content-Type: application/json\" -d '{\"newDelayInSeconds\": 2}'\n```\n\n## Custom workload endpoint\n```shell\ncurl -X GET \"http://localhost:8080/api/v1/workload/now?delay=10\"\n```\n\n### Run Gatling\n```shell\n./gradlew gatlingRun\n```\n\nOr with custom params:\n```shell\n./gradlew gatlingRun -Drps=2 -DdurationSec=15 -DhostName=http://localhost:8080\n```\n\n## Build docker image\n## With curl\n```shell\n./gradlew dockerBuildImage\n```\n\n### Lightweight image\n```shell\n./gradlew bootBuildImage --imageName=io.github.mfvanek/minikube-demo:0.0.1\n```\n\n## Run in Docker\n```shell\ndocker run --name minikube-demo -d -p 8080:8080 -t io.github.mfvanek/minikube-demo:latest\n```\n\n### Show logs\n```shell\ndocker logs minikube-demo\n```\n\n### Remove container\n```shell\ndocker rm -f minikube-demo\n```\n\n## Prepare minikube\nhttps://minikube.sigs.k8s.io/docs/start/\n\n### Config\n```shell\nminikube config view\n```\n\n```shell\nminikube config set memory 10000\nminikube config set cpus 5\nminikube config set driver docker\n```\n\n### Start\n```shell\nminikube start --force --extra-config=kubelet.cgroup-driver=systemd --container-runtime=docker\n```\n\n```shell\nminikube status\n```\n\n### Clean\n```shell\nminikube delete --all\n```\n\n```shell\nminikube delete --all --purge\n```\n\n### Dashboard\n```shell\nminikube dashboard\n```\n\n## Load image to minikube\n```shell\nminikube image load io.github.mfvanek/minikube-demo:0.2.2\n```\n\n```shell\nminikube image ls --format table\n```\n\n## Run pod\n```shell\nminikube kubectl -- run minikube-demo --image=io.github.mfvanek/minikube-demo:0.0.1 --port=8080 --image-pull-policy Never\nminikube kubectl -- get pods\nminikube kubectl -- delete pod minikube-demo\n```\n\n### Get pod details\n```shell\nminikube kubectl -- get pods\nminikube kubectl get endpoints\nminikube kubectl describe svc minikube-demo-service\n```\n\n## Deploy to minikube\n```shell\nminikube kubectl -- create -f k8s-deployment.yaml\n```\n\n```shell\nminikube kubectl -- apply -f k8s-deployment.yaml\n```\n\n## Expose service\n```shell\nminikube service minikube-demo-service --url\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfvanek%2Fminikube-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfvanek%2Fminikube-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfvanek%2Fminikube-demo/lists"}