Skip to content

blockchain-abstraction-middleware/cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform cluster deployment

Overview

Terraform script for deploying a cluster to Digital Ocean and setting up helm

Add your digital ocean token to deployments/staging/cluster/variables.tf

Prerequisites

Install teraform

Step 1

  • Deploy k8s cluster
make deploy

This will deploy a k8s cluster and download the kube_config

It also generates a input.tfvars.json file that is used in step 2

Step 2

  • Setup k8s cluster

Ensure you have exported your pgp key to ./*/setup/secring.pgp

make setup

Validations

Run the following commands to validate everything has worked correctly

kubectl get pods --all-namespaces

See pods:

  • tiller-deploy
  • istio-citadel
  • istio-pilot
  • istio-ingressgateway
kubectl get serviceaccounts --all-namespaces

See service account:

  • tiller
kubectl get namespaces

See new namespaces:

  • istio-system
  • go-apis

Step N

  • Destroy k8s cluster
make destroy

Beware of Dragons

  1. make setup needs to be ran twice, race condition between installing istio crds and installing istio

About

K8S cluster deployment on Digital Ocean

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published