Skip to content

sivaprasadreddy/spring-boot-todolist

Repository files navigation

spring-boot-todolist

A minimal SpringBoot application to try out new features.

CI Build Quality Gate Status

Run using DockerCompose

./run.sh start
./run.sh stop
./run.sh restart

Running on Kubernetes

cd kind
./create-cluster.sh
cd ..
./run.sh k8s_deploy
./run.sh k8s_undeploy
./kind/destroy-cluster.sh

kubectl commands

kubectl apply -f k8s/config.yaml
kubectl apply -f k8s/postgresdb.yaml
kubectl apply -f k8s/todolist.yaml

kubectl apply -f k8s/

kubectl scale --replicas=2 deployment spring-boot-todolist-deployment
    
kubectl create deployment spring-boot-todolist --image sivaprasadreddy/spring-boot-todolist -o yaml --dry-run=client > k8s/deployment.yaml

kubectl create service clusterip spring-boot-todolist --tcp 80:8080 -o yaml --dry-run=client > k8s/service.yaml

kubectl port-forward svc/spring-boot-todolist 9090:8080

kubectl create configmap spring-boot-todolist --from-file=./k8s/application.properties

kubectl create configmap todolist-k8s-configmap --from-file=./application.properties

kubectl get configmap spring-boot-todolist -o yaml

Development using Skaffold

skaffold dev --port-forward --skip-tests=true