Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.24 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.24 KB

Apache Kafka on Hashicorp Nomad.

This repository is my record of an attempt to get a secured Apache Kafka cluster running in Docker containers orchestrated by Hashicorp Nomad.

Pre-Requisites

  1. Install Terraform, Nomad, and Consul. Note that for Nomad and Consul you need only install the binaries, not set up servers.

Creating a Nomad lab cluster

This repository has a number of sub-modules for creating a complete Nomad cluster setup on various providers using Terraform. If you did not clone the repository using the --recurse-submodules option, make sure you run git submodule update --init to download everything.

AWS

Follow these steps to deploy a Nomad cluster on AWS. This assumes you have a valid AWS CLI profile already configured.

  1. Navigate in a command prompt to the nomad-lab/aws directory in the repository.
  2. Run the following commands:
    export AWS_REGION=us-east-1
    terraform init
    terraform plan -out out.tfplan -var-file ../lab.tfvars
    terraform apply out.tfplan
  3. Run the examples/nomad-examples-helper/nomad-examples-helpers.sh script to output useful information, such as the IP address of the Nomad master server.