Skip to content

A modular infrastructure-as-code solution for deploying a secure and scalable Stellar network using Kubernetes and Terraform.

Notifications You must be signed in to change notification settings

ibitolamayowa/k8s-terraform-stellar-network-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stellar Network Deployment with Kubernetes and Terraform

This Terraform code deploys a Stellar network on a Kubernetes cluster. The deployment includes two main components: Stellar Core and Stellar Horizon. Stellar Core is responsible for validating transactions and maintaining the ledger, while Stellar Horizon provides a REST API for accessing the Stellar network.

Prerequisites

Before running this code, you will need:

  • A Kubernetes cluster with kubectl configured
  • Terraform v0.14.11 or later installed on your machine
  • The Stellar Core and Horizon Docker images

Usage

  1. Clone this repository:
git clone https://github.com/ibitolamayowa/k8s-terraform-stellar-network-deployment.git
  1. Navigate to the stellar-network directory:
cd stellar-network
  1. Edit the variables.tf file to set your desired variables.

  2. Initialize the Terraform modules:

terraform init
  1. Plan the Terraform code:
terraform plan
  1. Apply the Terraform code:
terraform apply
  1. Once the deployment is complete, you can access the Stellar Horizon API at http://<horizon-load-balancer-ip>:8000.

Resources

This deployment includes the following resources:

  • A Kubernetes namespace for the Stellar network
  • A Kubernetes service account, role, and role binding for each component (Stellar Core and Stellar Horizon)
  • A Kubernetes deployment for Stellar Core
  • A Kubernetes deployment for Stellar Horizon
  • A Kubernetes config map for Stellar Horizon configuration

Notes

  • This deployment assumes that you have a separate database for Stellar Core and that the database URL is stored in a Kubernetes secret.
  • The default configuration assumes that you are using the testnet. If you want to use the public network, you will need to modify the Stellar Core and Horizon configuration files accordingly.
  • This deployment does not include any security measures, such as SSL/TLS certificates or firewall rules. It is recommended that you add these measures to your production deployment. Note that this is just an example README and should be modified to fit the specific needs of your deployment.

About

A modular infrastructure-as-code solution for deploying a secure and scalable Stellar network using Kubernetes and Terraform.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages