Giter Club home page Giter Club logo

easyclaim-backend's Introduction

Easyclaim backend

Backend code for easycliam application. The backend code is written in java springboot (Java 8)

Deployment

Deploy mysql database as deployment in Kubernetes

kubectl apply -f deployment/mysql/deployment/configmap.yaml
kubectl apply -f deployment/mysql/deployment/secret.yaml
kubectl apply -f deployment/mysql/deployment/deployment.yaml
kubectl apply -f deployment/mysql/deployment/service.yaml

Deploy easyclaim backend java application as deployment in kubernetes

kubectl apply -f deployment/configmap.yaml
kubectl apply -f deployment/deployment.yaml
kubectl apply -f deployment/service.yaml

Create new User in mysql database using backend api

curl -H "Content-Type: application/json" -X POST -d '{"username":"test","password":"test","firstName":"test","lastName":"test","age":23,"salary":12345}' http://10.5.0.7:8080/users

Info: http://10.5.0.7 --> backend ClusterIP service IP-address. Worker node ip address, if the service type is NodePort. External Ip address, if the service type is LoadBalancer

8080 --> backend ClusterIP service port. Use Nodeport defined in service definition, if the service type is NodePort. Use 80 if the service type is LoadBalancer

Generate load for tseting Horizontal Pod Autoscaler

kubectl run -i --tty load-generator --rm --image=busybox --restart=Never -- /bin/sh -c "while sleep 0.01; do wget -q -O- http://easyclaim-backend:8080/users; done"

easyclaim-backend's People

Contributors

vigneshsweekaran avatar

Watchers

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