Step 1:- Created a Java web application by using servlet it will connect to our Database to fetch some table info from Database
Note: Now we can call this servlet using #http://localhost:8080/DatabaseAccess it will display table info.
#mvn install
Please refer dockerfile to deploy war into the image.
#docker build -t your-image-id .
#kubectl create -f pod-service.yaml
As VTX is not eabled in my laptop/desktop, i am unable to launch minikube tool. So that, I have implemented in kubernetes due to time constaint. If you want me to do it in minikube, i need couple of days to do it as i need to get it enabled form my IT service.