bootstrap

by O(1) Labs

Helm chartv0.1.0App 0.1.0Verified publisher

A Chart loading required Secrets into Testnet's namespace

About this chart

Bootstrap Chart

Motivation

Unified management for environment requirements: current deployment strategy does not provide a standard pre-deployment configuration mechanism for the destination Kubernetes environment, creating configuration divergence and security risks (e.g., integration tests create key secrets directly from Terraform variables whereas testnet deployment relies on bash scripts, etc.).

We need to define unified bootstrap procedure for Kubernetes infrastructure that considers best practices for Secrets Management and Operations.

Overview

bootstrap is an in-house dependency management module for the deployment of Mina Networks using Terraform Kubernetes Testnet modules.

By its own, bootstrap will:

  • Create $NAME-key (i.e., seed keys) from files matching ./keys/*.pub
  • Create $NAME-key from files matching ./keys/libp2p-keys/ (i.e., libp2p keys)
  • Create gcloud-keyfile from ./keys/gcloud-keyfile.json (i.e., gcloud key file)

Examples

Some examples are provided as a minimal test set.

Generate dummy keys

Check the produced manifest using the dummy-example.yaml for rendering the Chart:

helm template . -f dummy-example.yaml

Testnet deployments with bootstrap Chart included

Deploy bootstrap with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has bootstrap on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartbootstrap is pinned at v0.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply