Skip to content

tekliner/another-test-devops-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevOps Kubernetes Task

Application Details

Our great log application can't persistently store data in Postgres. Please fix it. 🙏😺

The application is a python job hosted on Kubernetes. You need to set up the Kubernetes "cluster" using k3s and Docker Compose.

How to Run

  1. Start the K3S containers:

    docker compose up -d
  2. Access the running container:

    docker compose exec k3s-server sh
  3. Apply the Kubernetes manifests using Kustomize inside the container:

    kubectl apply -k ./manifests/

    You can modify files in the manifests directory and reapply them using the command above.

How to Test

To verify that the task is finished correctly, you need to be sure that the python job is writing logs to the Postgres database and this information is still available after Postgres pod deletion. You can execute into PG pod and check the logs table in testdb database.

Tips

How to restart python job quicly

./manifests/restart_job.sh

About

Another test devops task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published