Giter VIP home page Giter VIP logo

app-matrix's Introduction

app-matrix

Some description

Table of Contents

Created by Alok Singh

Docker Build

Build Docker Image

For ARM64 V8 Processor

cd app-matrix
docker build -t alokkusingh/app-matrix:arm64v8 --build-arg JAR_FILE=target/app-matrix-0.0.1-SNAPSHOT.jar --build-arg ARCH=arm64v8/ .
docker push alokkusingh/app-matrix:arm64v8

For AMD64 Processor

cd app-matrix
docker build -t alokkusingh/app-matrix:amd64 --build-arg JAR_FILE=target/app-matrix-0.0.1-SNAPSHOT.jar --build-arg ARCH=amd64/ .
docker push alokkusingh/app-matrix:amd64

Docker Run

Run the application by executing following command

For ARM64 V8 Processor based environment

docker run --rm --name app-matrix -p 8080:8080 alokkusingh/app-matrix:arm64v8

For AMD64 Processor based environment

docker run --rm --name app-matrix -p 8080:8080 alokkusingh/app-matrix:amd64

Kubernetes Deployment

Create Namespace

kubectl apply -f yaml/monitoring-namespace.yaml

Deploy Hello Service

kubectl apply -f yaml/hello-service-config.yaml
kubectl apply -f yaml/hello-service-deploy.yaml

Auto Scale

kubectl autoscale deployment hello-service --min=2 --max=3 --cpu-percent=80 -n monitoring

Deploy Prometheus

kubectl apply -f yaml/prometheus-config.yaml
kubectl apply -f yaml/prometheus-roles.yml
kubectl apply -f yaml/prometheus-deployment.yaml

Deploy Grafana

kubectl apply -f yaml/grafana.yaml

Monitoring Commands

kubectl get ep hello-service -n monitoring
kubectl describe svc hello-service -n monitoring

kubectl logs pod/hello-service-c668fb66-jtf97 app-matrix -n monitoring
kubectl logs pod/prometheus-c6d5c4d95-2c59b prometheus -n monitoring

kubectl describe pod/grafana-756fb84d84-b8mzm -n monitoring

kubectl get all -n monitoring

Undeploy All

kubectl delete namespace monitoring

Available APIs

Hello Service

GET http://jgte:30080/hello/app/hello/greet

Prometheus Dashboard

GET http://jgte:30900/

Grafana

GET http://jgte:3000/login

app-matrix's People

Contributors

alokkusingh avatar

Stargazers

 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.