Skip to content

joy-software/todoKubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

todoKubernetes

todo application deploy using docker container and managed with kubernetes.

Source Code of the application joy-software/TODO

Requirements

To use test the deployment using docker and kubernetes, you have to:

  1. Install Docker (https://docs.docker.com/install/)
  2. Install Kubectl (https://kubernetes.io/docs/tasks/tools/install-kubectl/)
  3. Install an hypervisor
  4. Install Minikube (https://github.com/kubernetes/minikube/releases)
  5. Install docker-compose (https://docs.docker.com/compose/install/)
  6. Install Kompose (http://kompose.io/)

Deployement

  1. Start minkube

  2. Deploy the app

    • Using Docker-compose

      • Download the project
      • Go to the Root directory
      • Exectute the command: sudo docker-compose up –d
      • Two containers must be created, to check that both containers are created, type the command sudo docker ps
      • To view the aplication just connect to (localhost:8000/app)
    • Using kompose

      • Download the project
      • Go to the directory called "kubernetes"
      • Exectute the command: sudo kompose convert
      • Then:  kubectl create –f db-deployment.yaml,db-service.yaml,php-deployment.yaml,php-service.yaml
      • Finally:  minikube service php –url , to get the url from which you could connect to the app

About

todo application deploy using docker container and managed with kubernetes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published