Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 774 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 774 Bytes

kubernetes-spring-postgres

Spring boot app connecting to database along with yaml files for kubernetes config

Minikube POC

$  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.