Skip to content

Latest commit

 

History

History
106 lines (64 loc) · 3.44 KB

quickstart-make.md

File metadata and controls

106 lines (64 loc) · 3.44 KB

Quickstart With Make

This allows you to reach step 8 in a single command after providing the required inputs.

Provision your vagrant data center on a Civo compute instance

make dc

select create datacenter

> create datacenter

🕐 ☕ You need to wait for the Civo instance to provision, install Vagrant and all dependencies, you can access to machine with > ssh datacenter-vm and test manually if vagrant commands are installed, you can return with > exit ◀️

When the process finish, you will be logged in your laptop automatically you can check the process of provisioning machines with:

echo $COLONY_API_KEY

colony init \
  --apiKey="$COLONY_API_KEY" \
  --apiURL="https://colony-api-virtual.konstruct.io"

exit

power on six machines from the data center instance

bash /root/colony-vagrant/virtual-datacenter/power-on.sh

exit

vagrant ssh laptop
kubectl get workflows

Create a CivoStack Enterprise cluster

Visit the "Clusters" tab in the left gutter and click the "Create Cluster" button.

civostack create cluster

Initial Configuration

For the Global Gateway IP enter 10.0.10.1, optionally add SAN's to specify additional DNS names or IP addresses that should be protected by the certificate generated for Kubernetes.

civostack initial configuration

CivoStack Enterprise Cluster Details

The cluster details today do not have validation but will be passed through to the configmap in the default namespace as the super cluster configuration.

civostack cluster details

Control Plane Selection

For the control planes, select two available hardware. Enter 10.0.10.20/24 for the first control plane static IP address and select a disk. For the second control plane enter 10.0.10.21/24 for the static IP address and select a disk.

note: we do not need a value for Gateway IP

civostack control plane selection

Worker Node Selection

For the worker nodes, select two available hardware. Enter 10.0.10.22/24 for the first selected worker node as the static IP address, leave the Gateway IP empty, and select a disk. For the second worker node enter 10.0.10.23/24 for the second selected worker node as the static IP address, leave the Gateway IP empty, select a disk, and hit the "Create Cluster" button to create the super cluster.

civostack worker node selection

Cluster Create in Progress

the cluster will take around 10 minutes to fully provision, grab a cup of coffee and come back in a few

civostack cluster provisioning

Cluster Create Complete

cluster creation complete!

civostack cluster create complete

bash /root/colony-vagrant/virtual-datacenter/destroy.sh

vagrant ssh laptop

kubectl -n tink-system delete hw,wf --all

todo: delete all records from database

Notes to iterate demo from this point:

  • vagrant destroy machine1
  • vagrant ssh laptop
  • k delete wf --all
  • k delete hw --all
  • exit back to datacenter
  • connect to cockroach from local
  • delete workflows and hardwares where account_id=xxx
  • check ui, assets are empty
  • return to step 10 when demoing