{"id":25976133,"url":"https://github.com/kh77/springboot-crud-k8s","last_synced_at":"2026-05-03T15:36:00.697Z","repository":{"id":119364595,"uuid":"528756488","full_name":"kh77/springboot-crud-k8s","owner":"kh77","description":"CRUD with MySql using k8s","archived":false,"fork":false,"pushed_at":"2022-08-25T08:17:16.000Z","size":33779,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-04T19:38:45.378Z","etag":null,"topics":["kubernetes","kubernetes-deployment","mysql","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","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/kh77.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-08-25T08:15:45.000Z","updated_at":"2022-08-25T15:26:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"cced62b2-5bd5-4854-a46c-15e8d72c39b5","html_url":"https://github.com/kh77/springboot-crud-k8s","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kh77/springboot-crud-k8s","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh77%2Fspringboot-crud-k8s","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh77%2Fspringboot-crud-k8s/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh77%2Fspringboot-crud-k8s/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh77%2Fspringboot-crud-k8s/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kh77","download_url":"https://codeload.github.com/kh77/springboot-crud-k8s/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh77%2Fspringboot-crud-k8s/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32575113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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":["kubernetes","kubernetes-deployment","mysql","spring-boot"],"created_at":"2025-03-05T03:35:21.003Z","updated_at":"2026-05-03T15:36:00.655Z","avatar_url":"https://github.com/kh77.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SpringBoot-K8s-CRUD-MySQL\nDeploy application to  kubernetes cluster using command line\n\n- mvn clean package\n- Install Minikube\n- Install Kubectl\n- Install DockerDesktop\n\n\n### Commands :\n- minikube start\n- minikube status\n- kubectl cluster-info\n\n\n### To read docker images from local / hub repository use this command in the windows \n    minikube docker-env\n\n### Copy the output of above command run again,it will be like this\n    @FOR /f \"tokens=*\" %i IN ('minikube -p minikube docker-env --shell cmd') DO @%i\n\n\n### Make docker image of the application\n    docker build -t crud-k8s:2.0 . \n\n### To see docker image which you built above\n    docker images\n\n### Create config-map using command prompt\n    kubectl apply -f mysql-configMap.yaml\n\n### get config-map info using command prompt\n    kubectl get configmap\n\n### Create secrets using command prompt\n    kubectl apply -f mysql-secrets.yaml\n\n### get secrets info using command prompt\n    kubectl get secrets\n\n### Create db using command prompt\n\tkubectl apply -f db-deployment.yaml\n\n### Check deployment which you created and ready state\n\tkubectl get deployment \n\n### see Pod \u0026 logs :\n    kubectl get pods\n\n### Copy the pod name from above and replace in the below command and see pod is running\n    kubectl logs {pod-name}\n\n### MySQL SSH \n    kubectl exec -it {pod-name} /bin/bash\n    mysql -u root -p\n    enter password : root\n    show databases;\n    You will see the database with the name of order_management\n\n\n### Create application using command prompt\n\tkubectl apply -f app-deployment.yaml\n    kubectl get deployment\n\n### Expose service of application to see the port\n\tkubectl get service\n    or\n    kubectl get svc\n    \n    To see the logs of spring boot with 3 pods\n    kubectl logs {pod-name}\n\n### Port forward in the windows machine for the pod to call rest api from postman/curl etc\n    kubectl port-forward {pod-name} 5000:8080\n    \n### Curl Request\n\n    curl --location --request POST 'localhost:5000/orders' \\\n    --header 'Content-Type: application/json' \\\n    --data-raw '{\n        \"name\":\"pizza\",\n        \"qty\":2,\n        \"price\": 1000\n    }'\n\n### Minikube IP\n    minikube ip\n\n### Check health\n    minikube dashboard\n      \n    copy the url and see in the dashboard pods , replica set , jobs etc  to see the health and delete pod etc.\n\n### Delete Service and deployment to clean up space\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkh77%2Fspringboot-crud-k8s","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkh77%2Fspringboot-crud-k8s","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkh77%2Fspringboot-crud-k8s/lists"}