Skip to content

Kv-062-DevOps/k8s-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The "Employee Manager" application

Kubernetes, Minikube, Docker

How to start the Demo project with all services in the Minikube

Download repository if you don't have:

git clone https://github.com/Kv-062-DevOps/k8s-deploy.git

Open the folder k8s-deploy in commandline console and execute:

minikube start
kubectl apply -f ./

If you have Windows, do port forwarding:

kubectl port-forward service/front-srv 8083:8080

Use command to get the address link:

minikube service front-srv --url

Open it in your web browser (for example, http://172.17.0.2:30808).


To visit a Kubernetes WEB dashboard, use command

minikube dashboard

If you want to see a raw data in the GET service, use:

minikube service get-srv --url

for example, link will be http://172.17.0.2:30593

If you want to see a raw data in the Backend service, get the address using command:

minikube service back-srv --url

and open this link in browser, adding a path /list, for example: http://172.17.0.2:31486/list

Clear resources after work:

kubectl delete deployments back get post db front
kubectl delete services back-srv get-srv post-srv db front-srv 
 
kubectl get pods
kubectl get services
kubectl get services
 
minikube stop

About

Kubernetes, Minikube, Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •