Skip to content

Mercurial007/test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run databases and microservices applications in Kubernetes

Process flow

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.

Step 2:- By Automation build tool maven, we do generate package by using

  #mvn install

Please refer dockerfile to deploy war into the image.

Step 3: Run the below command to build an image

  #docker build -t your-image-id .

Step 4: Please refer pod.yaml to deploy pod in kubernetes

  #kubectl create -f pod-service.yaml

Conclusion

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages