Git Product home page Git Product logo

3-tier-container's Introduction

3-tier containers in OCP

Architecture:

Container 1: React UI (Port 3000)

Container 2: Python API / Middleware Server (Port 5000)

Container 3: Database (e.g., PostgreSQL, Port 5432)

Step1: Describe Project Structure

3-tier/ ├── ui/ │ ├── Dockerfile │ ├── public/ │ └── src/ ├── api/ │ ├── Dockerfile │ └── app.py └── db/ └── Dockerfile

Step2: Setup Dockerfiles for UI, Middleware and Database

Step3: Source Code for Application

Step4: Build and push images to the registry

Step5: Deployment to openshift -> Deploy YAML in Openshift

Step 6: Expose UI Services -> oc expose svc/ui

Step7: Setup openshift to deploy -> Login to OCP -> Create project -> Apply Configuration

Step 8: Inplement CI/CD to automate the entire process

Pre-req: -> OCP cluster with OCP pipelines installed -> git repo for the application code -> docker registry to push images

SET UP Openshift Project

-> Create a new project -> Setup Tekton CI ---install tekton pipeline in openshift ---Create Tekton Pipeline ---- -> Setup ArgoCD -> Automate Deployments with Webhook -> Wekhook Steps: Setting Up Webhooks Go to your GitHub repository. Navigate to Settings > Webhooks. Click on "Add webhook". Set the payload URL to the Tekton EventListener endpoint. Choose application/json as the content type. Select the events you want to trigger the webhook (e.g., push).

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.