RabbitMQ and OpenShift

RedHat created very good launcher for a RabbitMQ cluster in OpenShift ( can be found here).
The problem I was stacked a little bit was creation of the cluster in an already created project.
I found out that it is easy to do, just change slightly a all.yml file.

---
openshift_cluster_content:
  # No need to create a new project
  #- object: projectrequest
  #  content:
  #  - name: rabbitmq-spaces
  #    file: "{{ inventory_dir }}/../files/projects/projects.yml"
  #    file_action: create
- object: imagestream
  content:
  - name: rhel7
    file: "{{ inventory_dir }}/../files/imagestreams/images.yml"
    namespace: scouting  # <-- write your project


Also important to fix deployment config template, which is located in the files/deployments/template.yml. The deployment will hook wrong image, so cluster won't build without the fix. Problem is in the naming of the image used to build rabbits.

image: "${APPLICATION_NAME}:${RABBITMQ_VERSION}"


Change to:

image: "rabbitmq:${RABBITMQ_VERSION}"

Comments

Popular posts from this blog

Install Kubeflow locally