Skip to content

tekliner/test-devops-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevOps Kubernetes Task

Application Details

Our great static website is broken. Please fix it. 🙏😺

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

How to Run

  1. Build the Docker images:

    docker compose build
  2. Start the K3S containers:

    docker compose up -d
  3. Add an entry to your hosts file to route traffic inside the local Kubernetes cluster:

    echo "127.0.0.1 test-domain.local" | sudo tee -a /etc/hosts
  4. Access the running container:

    docker compose exec k3s-server sh
  5. 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 website is functioning correctly, execute the following command on your host machine:

curl http://test-domain.local/foo

This should return the main page of the great website.

About

Test devops task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published