Code Monkey home page Code Monkey logo

cloudnativeapp's Introduction

CloudNativeApp

Sample Cloud App with Continous Integration, Continous Deployment and Continous Monitoring

1 Build the Tomcat Application with Actuator enabled for monitoring

docker buid . -t rajeshm9/webapp

docker run -p 8085:9080 rajeshm9/webapp (Tested it at local for Endpoint and prometheus url)

docker push (Image is in docker hub , pushed from my account)

  1. Deployed the Tomcat Application on Minikube

kubectl apply -f deploy.yaml (Creation of Deployment using image created in step 1 ,configured liveness (port) and readiness (http) probe , mount access logs foldes) Kubectl apply -f Service.yaml (Exposing Deployment as service on port 8080)

Kubectl apply -f ingress/ingress-resource.yaml (Creation of ingress resource pointing to tomcat-service listening on port 8080)

  1. Configuration of Prometheous for Monitoring

kubectl create configmap prometheus-cm --from-file prometheus.yml (Creation of config which contain the prometheus configuration for scraping application data points) kubectl apply -f prometheus-deploy.yaml (Creation of prometheus deployment and exposing service on Node port)

  1. Configuration of EFK Stack for Logging Purpose

kubectl apply -f elastic.yaml (Elasticsearch Deployment on single node and exposing it on Node port http://192.168.1.8:32759/)

kubectl apply -f kibana.yaml (Kibana Deployment and exposing it node port http://192.168.1.8:31320/)

kubectl apply -f fluentd-rbac.yaml (Creation of Cluster Role for accessing the kube-namespace logs)

kubectl apply -f fluentd-daemonset.yaml (Creation on Fluentd Daemonset)

Pending

  • Jenkins Pipeline Setup for build, docker image Publish and Deployment on K8S Setup (Done)
  • Sonarqube for Code Quality Check
  • Adding of Testing Tools for Continous Testing.
  • Security Tools Integration
  • Prometheous AlertManager Intergation
  • Grafana Integration
  • Helm Chart Creation

Sample App Code Taken From: https://github.com/callicoder/spring-boot-actuator-demo

Minikube Setp minikube start --driver=docker

** Testing Generic Webhook **

cloudnativeapp's People

Contributors

shubhasismathur avatar rajeshm9 avatar

Watchers

James Cloos avatar  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.