- Clone the repository:
git clone https://github.com/hendisantika/springboot-thymeleaf-postgres.git
. - Go to folder:
cd springboot-thymeleaf-postgres
- Run application:
mvn clean spring-boot:run
kubectl apply -f k8s/postgres-configmap.yml
kubectl get configmap
kubectl apply -f k8s/postgres-credentials.yml
kubectl get secret
kubectl describe secret postgres-credentials
kubectl apply -f k8s/postgres-deployment.yml
kubectl get deployment
kubectl get pod
kubectl logs -f postgres-77977dd68f-4dwjz
kubectl port-forward postgres-77977dd68f-4dwjz 5433:5432