Coder Social home page Coder Social logo

kuldeepsingh99 / hazelcast-embeded Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 23 KB

Spring boot My SQL with Hazelcast Embedded Cache in kubernetes

Dockerfile 1.88% Java 96.07% TSQL 2.05%
hazelcast hazelcast-cluster hazelcast-spring hazelcast-client spring-boot microservice caching mysql caching-sql

hazelcast-embeded's Introduction

hazelcast embeded cache with Spring boot and Mysql

Prerequisite

We will be deploying this in kubernetes cluster, so make sure kubernetes is install and cluster is ready

Down the customer service and create your own image, and change the image path here and push it to your own dockerhub account or keep the image locally.

Step 1 ( Creating secrets)

Execute these statements

kubectl create secret generic mysql-root-pass --from-literal=password=root

kubectl create secret generic mysql-user-pass --from-literal=username=root --from-literal=password=root

kubectl create secret generic mysql-db-url --from-literal=database=customerdb

Step 2 (Deploying mysql DB)

Run this command to create mysql DB container

kubectl apply -f mysql.yml

mysql.yml file is here

check whether pods/service/deploymeny are created with these command

kubectl get deploy
kubectl get svc
kubectl get pods

Step 3 (Deploying customer service)

Run this command to create mysql DB container

kubectl apply -f customer.yml

customer.yml file is here

check whether pods/service/deploymeny are created with these command

kubectl get deploy
kubectl get svc
kubectl get pods

Scaling Customer Service

Exceute this commond to scale

kubectl scale --replicas=2 deployment/customer

hazelcast-embeded's People

Contributors

kuldeepsingh99 avatar

Stargazers

 avatar  avatar

Watchers

 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.