This is a todo list web application with basic features of most web apps, i.e., accounts/login, API, and interactive UI. To do this task, you will need:
Try it out by installing the requirements (the following commands work only with Python 3.8 and higher, due to Django 4):
pip install -r requirements.txt
Create a database schema:
python manage.py migrate
And then start the server (default is http://localhost:8000):
python manage.py runserver
Now you can browse the API or start on the landing page.
Create a kubernetes manifest for a pod which will containa ToDo app container:
- Fork this repository.
- Create a
pv.yml
file forPersistentVolume
resource. PersistentVolume
requirements:PersistentVolume
persistentVolumeReclaimPolicyDelete
PersistentVolume
classstandard
PersistentVolume
accessModesReadWriteMany
PersistentVolume
capacity1Gi
PersistentVolume
should usehostPath
- Create a
pvc.yml
file forPersitentVolumeClaim
resource. PersitentVolumeClaim
requirements:PersitentVolumeClaim
should claim aPersistentVolume
from a pvc file.Deployment
should usePersistentVolume
throught thePersitentVolumeClaim
PersistentVolume
mount path should be/app/data
- Other Requirements
- Mount existing configMap as file into /app/configs folder inside container. It should be a read-only mount
- Mount existing secret as files into /app/secrets folder inside container. It should be a read-only mount
bootstrap.sh
should containe all the commands to deploy all the required resources in the clusterREADME.md
should have instructuions on how to validate:- App is running
- ConfigMap data is mounted as files in a right order
- Secret data is mounted as file
- How Output 'cat counter.txt' from a pod
- Create PR with your changes and attach it for validation on a platform.