Skip to content

IF1007/microservices-communication

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

microservices-communication

Deploying

With Minikube, kubectl and helm installed, start a cluster with the necessary memory:

    minikube start --memory=4096 --cpus=4

On the k8s/ folder follow the steps:

To Deploy the communication infra

After the cluster has started execute the following command with to create the comm-infra namespace:

    kubectl create -f comm-infra-ns.yaml

To install Strimzi execute:

    ./install_strimzi.sh

To build the local containers and send them to minikube execute in the root dir:

    ./build.sh

To deploy kafka execute:

    kubectl create -f kafka/cluster.yaml

To create a topic execute:

    kubectl create -f kakfa/topics/<topic-file>

To teardown the application you can delete the created namespace:

    kubectl delete -f app/sock-shop-ns.yaml

To Deploy the application

After the cluster has started execute the following command with to create the sock-shop namespace:

    kubectl create -f app/sock-shop-ns.yaml

After the namespace is created build the queue-master and shipping images are built, you can execute the following command to spawn the rest of the containers:

    kubectl create -f app/services

To teardown the application you can delete the created namespace:

    kubectl delete -f app/sock-shop-ns.yaml

To Build the Services

If need to build the custom services execute, go to the service directory and execute:

    GROUP=comm-infra COMMIT=1.0 ./scripts/build.sh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 37.8%
  • Shell 23.4%
  • Batchfile 13.2%
  • Python 13.2%
  • Go 6.2%
  • JavaScript 4.4%
  • Other 1.8%