Local Deployment using Infrastructure as Code¶
This guide describes how to deploy a two-party Carbyne Stack Virtual Cloud onto local kind cluster using CDKTF.
Setup¶
-
Clone the carbynestack/carbynestack repository
git clone git@github.com:carbynestack/carbynestack.git
-
Change into the
carbynestack
directorycd carbynestack
-
Checkout the tag
sdk-v0.5.0
git checkout tags/sdk-v0.5.0
-
Change directory to the
deployments
foldercd deployments
-
Install npm dependencies:
npm install
-
Generate CDKTF provider bindings and import modules (located in the
.gen
folder):cdktf get
Deploy¶
In the ./deployments
folder:
-
Deploy the stack using
cdktf deploy local-kind
Destroy and Clean Up¶
If you no longer need the stack or want to tear it down to apply changes to the infrastructure as code, run the following command:
cdktf destroy
Alternatively, you can use:
kind delete clusters cs-1 cs-2
And delete the CDKTF state files (like terraform.local-kind.tfstate
) manually.