Deploying on bare metal

In order to make it possible to run Drogue Cloud in other environments, we provide a drogue-cloud-server binary to run a single or multiple Drogue Cloud services. This does not require Kubernetes or containers to run.

You do need to have running instances of Kafka, Keycloak and PostgreSQL in order to use this form of deployment.

Pre-requisites

The binary assumes the following services being available locally by default:

  • Kafka bootstrap: localhost:9092

  • Keycloak:

  • PostgreSQL

    • Database name: drogue

    • Database user: admin

    • Database password: admin123456

Have a look at the --help options for other ways to configure it.

(Optional) Starting pre-requisites

You thought you didn’t need containers, HAH! Well, to make it simpler to get the prerequisites running, here is a docker compose file for running them and making them available at the above ports:

version: "3.9"
services:
  postgres:
    image: docker.io/bitnami/postgresql:13
    environment:
      - POSTGRESQL_USERNAME=admin
      - POSTGRESQL_PASSWORD=admin123456
      - POSTGRESQL_DATABASE=drogue
    ports:
      - "5432:5432"
  kafka:
    image: docker.io/moeenz/docker-kafka-kraft:latest
    ports:
      - "9092:9092"
    environment:
      - KRAFT_CONTAINER_HOST_NAME=localhost
  keycloak:
    image: docker.io/jboss/keycloak:13.0.1
    environment:
      - KEYCLOAK_USER=admin
      - KEYCLOAK_PASSWORD=admin123456
      - DB_VENDOR=h2
    ports:
      - "8080:8080"

Running

Make sure all dependencies are running correcrly. To start the drogue server, run:

drogue-cloud-server --enable-all

This will perform the following steps:

  • Migrate database schema

  • Create Keycloak OIDC clients

  • Start all drogue services

You should be able to connect to the local drogue instance using the drg client:

drg login http://localhost:10001

Enabling TLS

To enable TLS for the protocol endpoints, you can pass the certificate and key using --server-cert and --server-key.