Spring boot app connecting to database along with yaml files for kubernetes config
- Install minikube https://github.com/kubernetes/minikube/releases
- Install VirtualBox https://www.virtualbox.org/wiki/Downloads
- open a terminal
$ minikube start --memory 8192
$ eval $(minikube docker-env)
$ build demo project with command ``` mvn install docker:build``` `
$ kubectl apply -f postgres/volume.yaml
$ kubectl apply -f postgres-config.yaml
$ kubectl apply -f postgres/postgres.yaml
$ kubectl apply -f demo/kube-config/spring-boot-demo-config-map.yaml
$ kubectl apply -f demo/kube-config/spring-boot-demo.yaml
- Then you should have two running pods; a spring boot service and a db talking to each other.