Quick Start Guide

Deploy production-ready CMX Protocol infrastructure in 30 minutes using our automated tools.

๐ŸŽฏ What You'll Deploy

By the end of this guide, you'll have infrastructure ready for the CapSign ecosystem:

  • โœ… AWS EKS cluster optimized for CMX Protocol and CMX Network

  • โœ… Reth Ethereum client for L1 connectivity

  • โœ… Prysm consensus client with validator support

  • โœ… Optimism-ready infrastructure for CMX Network deployment

  • โœ… Monitoring stack with Prometheus and Grafana for protocol monitoring

  • โœ… Production security with encrypted storage and network policies

๐Ÿ“‹ Prerequisites

Before starting, ensure you have:

  • AWS Account with billing enabled

  • GitHub Account for repository access

  • Domain name (optional, for custom endpoints)

  • 30 minutes of focused time

Required Tools

# Install required CLI tools
brew install terraform helm kubectl awscli

# Or using package managers:
# Ubuntu: apt-get install terraform helm kubectl awscli
# Windows: choco install terraform helm kubectl awscli

AWS Credentials

Set up AWS access using one of these methods:

Option A: AWS CLI

aws configure
# Enter your Access Key ID, Secret Access Key, and region

Option B: Environment Variables

export AWS_ACCESS_KEY_ID="your-access-key"
export AWS_SECRET_ACCESS_KEY="your-secret-key"
export AWS_DEFAULT_REGION="us-west-2"

๐Ÿš€ Step 1: Deploy Infrastructure

Clone Infrastructure Repository

git clone https://github.com/capsign/infrastructure.git
cd infrastructure

Configure Variables

# Copy the example configuration
cp terraform.tfvars.example terraform.tfvars

# Edit with your preferences
nano terraform.tfvars

Key variables to customize:

# terraform.tfvars
project_name = "my-blockchain"
environment  = "production"
region       = "us-west-2"

# Node configuration
node_desired_size = 3
node_instance_types = ["m5.large"]

# Enable blockchain-specific features
enable_blockchain_dedicated_nodes = true
enable_monitoring = true

Deploy Infrastructure

# Initialize Terraform
terraform init

# Review the deployment plan
terraform plan

# Deploy (takes ~15 minutes)
terraform apply

โ˜• Coffee break! This creates your VPC, EKS cluster, security groups, and IAM roles.

Configure kubectl

# Connect to your new cluster
aws eks update-kubeconfig --region us-west-2 --name my-blockchain-cluster

# Verify connection
kubectl get nodes

๐Ÿšข Step 2: Deploy Blockchain Stack

Clone Helm Charts Repository

cd ..
git clone https://github.com/capsign/helm-charts.git
cd helm-charts

Deploy Everything at Once

# Deploy all components to production
./scripts/deploy-all.sh production

This script deploys:

  1. Monitoring stack (Prometheus, Grafana, AlertManager)

  2. Reth execution client

  3. Prysm consensus client

  4. Network policies and RBAC

Monitor Deployment Progress

# Watch deployments
kubectl get pods -A --watch

# Check specific services
kubectl get pods -n blockchain
kubectl get pods -n monitoring

๐Ÿ“Š Step 3: Access Your Infrastructure

Grafana Dashboard

# Get Grafana admin password
kubectl get secret --namespace monitoring monitoring-stack-grafana \
  -o jsonpath="{.data.admin-password}" | base64 --decode ; echo

# Port forward to access locally
kubectl port-forward svc/monitoring-stack-grafana 3000:80 -n monitoring

Open: http://localhost:3000

  • Username: admin

  • Password: [from command above]

Blockchain Node Endpoints

# Get Reth RPC endpoint
kubectl get svc reth -n blockchain

# Test RPC connection
kubectl exec -n blockchain deployment/reth -- \
  curl -X POST -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' \
  http://localhost:8545

Consensus Client Status

# Check Prysm beacon node
kubectl logs -n blockchain deployment/prysm-beacon --tail=50

# Check sync status
kubectl exec -n blockchain deployment/prysm-beacon -- \
  curl http://localhost:8080/healthz

โœ… Verification Checklist

Confirm your deployment is working:

Health Check Commands

# Overall cluster health
kubectl get nodes
kubectl get pods -A | grep -v Running

# Blockchain sync status
kubectl logs -n blockchain deployment/reth --tail=10
kubectl logs -n blockchain deployment/prysm-beacon --tail=10

# Monitoring stack
kubectl get pods -n monitoring

๐ŸŽ‰ Success! What's Next?

Your blockchain infrastructure is now live! Here are recommended next steps:

Immediate Actions

Optional Enhancements

Learning Resources

๐Ÿ†˜ Need Help?

Something not working? We're here to help:

๐Ÿ’ฐ Cost Estimation

Typical monthly costs for this setup:

Component
Instance Type
Monthly Cost

EKS Control Plane

-

$73

Worker Nodes

3x m5.large

$195

Storage (EBS)

500GB gp3

$40

Load Balancer

ALB

$25

Total

~$333/month

๐Ÿ’ก Cost optimization tips:


๐Ÿš€ Congratulations! You've deployed enterprise-grade infrastructure ready for the CMX Protocol and CMX Network. Welcome to the CapSign community!

Deploy production-ready CMX Protocol infrastructure in 30 minutes using our automated tools.

๐ŸŽฏ What You'll Deploy

By the end of this guide, you'll have infrastructure ready for the CapSign ecosystem:

  • โœ… AWS EKS cluster optimized for CMX Protocol and CMX Network

  • โœ… Reth Ethereum client for L1 connectivity

  • โœ… Prysm consensus client with validator support

  • โœ… Optimism-ready infrastructure for CMX Network deployment

  • โœ… Monitoring stack with Prometheus and Grafana for protocol monitoring

  • โœ… Production security with encrypted storage and network policies

๐Ÿ“‹ Prerequisites

Before starting, ensure you have:

  • AWS Account with billing enabled

  • GitHub Account for repository access

  • Domain name (optional, for custom endpoints)

  • 30 minutes of focused time

Required Tools

# Install required CLI tools
brew install terraform helm kubectl awscli

# Or using package managers:
# Ubuntu: apt-get install terraform helm kubectl awscli
# Windows: choco install terraform helm kubectl awscli

AWS Credentials

Set up AWS access using one of these methods:

Option A: AWS CLI

aws configure
# Enter your Access Key ID, Secret Access Key, and region

Option B: Environment Variables

export AWS_ACCESS_KEY_ID="your-access-key"
export AWS_SECRET_ACCESS_KEY="your-secret-key"
export AWS_DEFAULT_REGION="us-west-2"

๐Ÿš€ Step 1: Deploy Infrastructure

Clone Infrastructure Repository

git clone https://github.com/capsign/infrastructure.git
cd infrastructure

Configure Variables

# Copy the example configuration
cp terraform.tfvars.example terraform.tfvars

# Edit with your preferences
nano terraform.tfvars

Key variables to customize:

# terraform.tfvars
project_name = "my-blockchain"
environment  = "production"
region       = "us-west-2"

# Node configuration
node_desired_size = 3
node_instance_types = ["m5.large"]

# Enable blockchain-specific features
enable_blockchain_dedicated_nodes = true
enable_monitoring = true

Deploy Infrastructure

# Initialize Terraform
terraform init

# Review the deployment plan
terraform plan

# Deploy (takes ~15 minutes)
terraform apply

โ˜• Coffee break! This creates your VPC, EKS cluster, security groups, and IAM roles.

Configure kubectl

# Connect to your new cluster
aws eks update-kubeconfig --region us-west-2 --name my-blockchain-cluster

# Verify connection
kubectl get nodes

๐Ÿšข Step 2: Deploy Blockchain Stack

Clone Helm Charts Repository

cd ..
git clone https://github.com/capsign/helm-charts.git
cd helm-charts

Deploy Everything at Once

# Deploy all components to production
./scripts/deploy-all.sh production

This script deploys:

  1. Monitoring stack (Prometheus, Grafana, AlertManager)

  2. Reth execution client

  3. Prysm consensus client

  4. Network policies and RBAC

Monitor Deployment Progress

# Watch deployments
kubectl get pods -A --watch

# Check specific services
kubectl get pods -n blockchain
kubectl get pods -n monitoring

๐Ÿ“Š Step 3: Access Your Infrastructure

Grafana Dashboard

# Get Grafana admin password
kubectl get secret --namespace monitoring monitoring-stack-grafana \
  -o jsonpath="{.data.admin-password}" | base64 --decode ; echo

# Port forward to access locally
kubectl port-forward svc/monitoring-stack-grafana 3000:80 -n monitoring

Open: http://localhost:3000

  • Username: admin

  • Password: [from command above]

Blockchain Node Endpoints

# Get Reth RPC endpoint
kubectl get svc reth -n blockchain

# Test RPC connection
kubectl exec -n blockchain deployment/reth -- \
  curl -X POST -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' \
  http://localhost:8545

Consensus Client Status

# Check Prysm beacon node
kubectl logs -n blockchain deployment/prysm-beacon --tail=50

# Check sync status
kubectl exec -n blockchain deployment/prysm-beacon -- \
  curl http://localhost:8080/healthz

โœ… Verification Checklist

Confirm your deployment is working:

Health Check Commands

# Overall cluster health
kubectl get nodes
kubectl get pods -A | grep -v Running

# Blockchain sync status
kubectl logs -n blockchain deployment/reth --tail=10
kubectl logs -n blockchain deployment/prysm-beacon --tail=10

# Monitoring stack
kubectl get pods -n monitoring

๐ŸŽ‰ Success! What's Next?

Your blockchain infrastructure is now live! Here are recommended next steps:

Immediate Actions

Optional Enhancements

Learning Resources

๐Ÿ†˜ Need Help?

Something not working? We're here to help:

๐Ÿ’ฐ Cost Estimation

Typical monthly costs for this setup:

Component
Instance Type
Monthly Cost

EKS Control Plane

-

$73

Worker Nodes

3x m5.large

$195

Storage (EBS)

500GB gp3

$40

Load Balancer

ALB

$25

Total

~$333/month

๐Ÿ’ก Cost optimization tips:


๐Ÿš€ Congratulations! You've deployed enterprise-grade infrastructure ready for the CMX Protocol and CMX Network. Welcome to the CapSign community!

Last updated

Was this helpful?