Git Product home page Git Product logo

devops_todolist_kubernetes_task_8_volumes's Introduction

Django ToDo list

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:

Explore

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.

Task

Create a kubernetes manifest for a pod which will containa ToDo app container:

  1. Fork this repository.
  2. Create a pv.yml file for PersistentVolume resource.
  3. PersistentVolume requirements:
    1. PersistentVolume persistentVolumeReclaimPolicy Delete
    2. PersistentVolume class standard
    3. PersistentVolume accessModes ReadWriteMany
    4. PersistentVolume capacity 1Gi
    5. PersistentVolume should use hostPath
  4. Create a pvc.yml file for PersitentVolumeClaim resource.
  5. PersitentVolumeClaim requirements:
    1. PersitentVolumeClaim should claim a PersistentVolume from a pvc file.
    2. Deployment should use PersistentVolume throught the PersitentVolumeClaim
    3. PersistentVolume mount path should be /app/data
  6. Other Requirements
    1. Mount existing configMap as file into /app/configs folder inside container. It should be a read-only mount
    2. Mount existing secret as files into /app/secrets folder inside container. It should be a read-only mount
  7. bootstrap.sh should containe all the commands to deploy all the required resources in the cluster
  8. README.md should have instructuions on how to validate:
    1. App is running
    2. ConfigMap data is mounted as files in a right order
    3. Secret data is mounted as file
    4. How Output 'cat counter.txt' from a pod
  9. Create PR with your changes and attach it for validation on a platform.

devops_todolist_kubernetes_task_8_volumes's People

Contributors

ykulyk404 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.