Code Monkey home page Code Monkey logo

devops-project-reddit-clone-k8s-ingress's Introduction

Reddit Clone App on Kubernetes with Ingress

This project demonstrates how to deploy a Reddit clone app on Kubernetes with Ingress and expose it to the world using Minikube as the cluster.

Prerequisites

Before you begin, you should have the following tools installed on your local machine:

  • Docker
  • Minikube cluster ( Running )
  • kubectl
  • Git

You can install Prerequisites by doing this steps. click here & complete all steps one by one.

Installation

Follow these steps to install and run the Reddit clone app on your local machine:

  1. Clone this repository to your local machine: git clone https://github.com/LondheShubham153/reddit-clone-k8s-ingress.git
  2. Navigate to the project directory: cd reddit-clone-k8s-ingress
  3. Build the Docker image for the Reddit clone app: docker build -t reddit-clone-app .
  4. Deploy the app to Kubernetes: kubectl apply -f deployment.yaml
  5. Deploy the Service for deployment to Kubernetes: kubectl apply -f service.yaml
  6. Enable Ingress by using Command: minikube addons enable ingress
  7. Expose the app as a Kubernetes service: kubectl expose deployment reddit-deployment --type=NodePort --port=5000
  8. Create an Ingress resource: kubectl apply -f ingress.yaml

Test Ingress DNS for the app:

  • Test Ingress by typing this command: curl http://domain.com/test

Contributing

If you'd like to contribute to this project, please open an issue or submit a pull request.

devops-project-reddit-clone-k8s-ingress's People

Watchers

Pranav P 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.