Giter VIP home page Giter VIP logo

devops-assignment's Introduction

Overview
This project involves deploying an Ollama service on Kubernetes, setting up Horizontal Pod Autoscaler (HPA), and conducting load testing. The goal is to ensure that the service scales effectively under various load conditions and meets performance requirements.

Implementation

  1. Deployment Service Deployment: A Kubernetes deployment has been created for the application service with two replicas. The deployment is defined in deployment.yaml.

  2. Service Configuration Service Definition: A LoadBalancer service is set up to expose the service to the external network. The service configuration is in service.yaml.

Horizontal Pod Autoscaler (HPA): An HPA is configured to scale the Ollama deployment based on CPU utilization. The HPA configuration is in hpa.yaml.

CI/CD Pipeline
In this task I have used GitHub actions as my ci/cd tool. The CI/CD pipeline using GitHub Actions automates the process of building, testing, and deploying the service. By adhering to best practices and utilizing automated workflows, you can ensure efficient and reliable deployments.

Kubectl Commands used
kubectl apply -f deployment.yaml -n devops-assignment
kubectl apply -f service.yaml -n devops-assignment
kubectl apply -f hpa.yaml -n devops-assignment

k6 Load test commands used
k6 run <test-script-file_name> Screenshot 2024-07-19 200002 Screenshot 2024-07-19 200226 Screenshot 2024-07-19 195846 Screenshot 2024-07-19 200650 Screenshot 2024-07-19 200335

Conclusion
This project demonstrates the deployment and scaling of a service using Kubernetes and load testing to ensure performance and stability. By following the documented best practices and setup instructions, you can reproduce the setup and perform similar testing.

devops-assignment's People

Contributors

mukeshr-29 avatar

Watchers

 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.