GithubHelp home page GithubHelp logo

0x5d / deployment-automation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from redpanda-data/deployment-automation

0.0 1.0 1.0 56 KB

Cluster configuration best practices

Home Page: https://vectorized.io/redpanda

License: Apache License 2.0

HCL 100.00%

deployment-automation's Introduction

Redpanda-provision

Utilities to easily provision a Redpanda cluster on AWS.

Terraform & Ansible are used to create and manage the nodes and deploy the application.

Installation Requirements

Usage

Optional Steps: 1-3

Steps 1-3 are only needed to create new EC2 instances to deploy the redpanda cluster on. If already created infrastructure is going to be used, they can safely be skiped.

  1. Create AWS secret keys and provide them to terraform https://registry.terraform.io/providers/hashicorp/aws/latest/docs#environment-variables
  2. terraform init
  3. terraform apply to create the resources on AWS.
    • Supported configuration variables (See vars.tf):
      • aws_region: The AWS region to deploy the infrastructure on.
      • nodes: The number of nodes to base the cluster on. Keep in mind that one node is used as a monitoring node.
      • instance_type: The instance to run redpanda on.
      • public_key_path: Provide the path to the public key of the keypair used to access the nodes.
      • distro: Linux distribution to install (dependent on vars below)
      • distro_ami: AWS AMI to use for each available distribution. These have to be changed with according to the chosen AWS region.
      • distro_ssh_user: User used to ssh into the created EC2 instances.

Required Steps: 4-6

  1. Fill in the hosts.ini template with the user & ips, based either on the terraform output or your own infrastructure.

  2. ansible-playbook --private-key <your_private_key> -i hosts.ini -v ansible/playbooks/provision-node.yml -e redpanda_packagecloud_token=<your_token_here> <extra variables - optional>

    • To start Redpanda and monitoring on the nodes, extra variable -e start=true can be passed to the ansible command
  3. Use rpk & standard kafka tool to produce/consume from the redpanda cluster & access the grafana installation on the monitor host.

deployment-automation's People

Contributors

0xdiba avatar emaxerrno avatar ivotron avatar rkruze avatar takidau avatar

Watchers

 avatar

Forkers

arekzarowski

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.