GithubHelp home page GithubHelp logo

sre-lab's Introduction

SRE - DEMO

Contineous Integration with Github Actions

There is workflow configured for contineuos integration which covers Frontend and Backend application docker container build and push to its public registry. This work flow configured as manual dispatch as it is on demo.

we can configure it on PUSH or PULL requests based on or as per our requirements.

For this action, Secrets are configured at GITHUB and then it used as VAR in action code.

GITHUB ACTIONS CODE

Deployment Method

standard docker-compose

This method creates standard EC2 Instance by terraform code and then it adds required dependencies via userdata template

TF-COMPOSE-METHOD

Kuberneted based Application Deployment

Test Application on minikube locally before pushing for cloud deployment

Install minikube MINIKUBE

minikube start

Deploy Application and verify

k apply -f k8s/
k get deployment,pods,svc
minikube service web

Deploy AWS EKS CLUSTER

AWS EKS CODE

Deploy Application

k apply -f k8s/

Verify Deployment

 k get Deployment,svc

To access Application locally

k port-forward svc/web 3000:3000

Test Application

curl http://127.0.0.1:3000/

Access from Browser

Further to enable Ingress on application to access globally

Install AWS ALB Ingress Controller to Cluster

Install AWS ALB CONTROLLER for Cluster

helm repo add eks https://aws.github.io/eks-charts
helm repo update

helm install aws-load-balancer-controller \
 eks/aws-load-balancer-controller   -n kube-system  \
--set clusterName=demo-cluster  \          # demo-cluster is clusterName here
--set serviceAccount.create=false  \
--set serviceAccount.name=aws-load-balancer-controller

Verify AWS ALB controller

kubectl get deployment -n kube-system aws-load-balancer-controller

Apple Ingress resources for Application

k apply -f ingress.yaml

Verify Ingress and get Access Address

 k get ingress

sre-lab's People

Watchers

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