Skip to content

arthurescriou/k8s-exercice-eda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Deploy Rabbitmq in kubernetes

Deployer un cluster rabbitMQ

Intstallation

kubectl apply -f "https://github.com/rabbitmq/cluster-operator/releases/latest/download/cluster-operator.yml"

Création du cluster

apiVersion: rabbitmq.com/v1beta1
kind: RabbitmqCluster
metadata:
  name: production-rabbitmqcluster
spec:
  replicas: 3
  resources:
    requests:
      cpu: 500m
      memory: 1Gi
    limits:
      cpu: 1
      memory: 2Gi
  rabbitmq:
    additionalConfig: |
      log.console.level = info
      channel_max = 1700
      default_user= guest
      default_pass = guest
      default_user_tags.administrator = true
  service:
    type: LoadBalancer

Déployer le projet rabbit-receiver

Créer un pod se connectant au rabbitMQ.

Et tester la connection avec le script send.js.

Auto scaling

On veut maintenant faire monter à l'échelle automatiquement le projet receiver.

=> créer un autoscaler pour le déploiement du projet.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published