About Application: Simple browser based application to add and display todo list.
-
app: This directory contains application related code and
Dockerfile
to build custom image. Image build locally from base image python:3.8 and uploaded on the docker hub repository todo-app -
deployment.yaml: This file contains deployment template to create pods using the image
agakhil13/todo-app:latest
and exposing the port5000
. Following command can be use to spin up deployment:
kubectl apply -f deployment.yaml
- service.yaml: This file contains the sevice template to create service for catering pods created by deployment and map port
5000
to port80
. Following command can be use to spin up service:
kubectl apply -f service.yaml