Git Product home page Git Product logo

kubernetes-assignment-rust-backend's Introduction

Kubernetes Assignment

This project demonstrates the basic concepts of kubernetes.

Prerequisites

Before getting started, ensure that you have the following prerequisites installed on your system:

  • Docker
  • Kubernetes (kubectl)
  • Minikube (optional if using Minikube)

Installation

  1. Clone the repository:
    git clone https://github.com/harshvishu/kubernetes-assignment-rust-backend
  1. Change to the project directory:
    cd kubernetes-assignment-rust-backend-main
  1. Deploy the required resources:
    # Apply secrets and config maps
   kubectl apply -f deployments/db-secrets.yaml
   kubectl apply -f deployments/db-config.yaml
   # Apply postgres database service and deployment
   kubectl apply -f deployments/postgres-service.yaml
   kubectl apply -f deployments/postgres-persistence-volume-deployment.yaml
   # Run databse migration and initial seed data if-required
   kubectl apply -f deployments/db-migration-up-job.yaml
   kubectl apply -f deployments/db-seed-job.yaml
   # Start REST Api and Front-End App
   kubectl apply -f deployments/todo-config.yaml
   kubectl apply -f deployments/todo-api-deployment.yaml
   kubectl apply -f deployments/todo-api-service.yaml
   kubectl apply -f deployments/todo-web-deployment.yaml
   kubectl apply -f deployments/todo-web-loadbalancer-service.yaml
  1. Verify the deployment:
   kubectl get pods
   kubectl get services
   kubectl get pv
   kubectl get pvc

Usage

To access the application, follow these steps:

  1. Get the external IP for the load balancer service (minikube):
   minikube service todo-web --url
  1. Using Kubernetes on docker hub, simply go to:
   http://localhost:80

Cleanup

To clean up the resources created by the application, run the following command:

   kubectl delete all --all

Repositories used

kubernetes-assignment-rust-backend's People

Contributors

harshvishu 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.