forked from rook/rook
718 B
718 B
Running castled
Setup
- Copy your
castledbinary to one or more CoreOS machines - Generate a discovery token
token_size=3
discovery_token=$(curl -w "\n" "https://discovery.etcd.io/new?size=$token_size" 2>nil)
echo $discovery_token
Run castle
Start the castled process on each machine. Don't forget to set or replace your $discovery_token variable
./castled --discovery-url=$discovery_token --private-ipv4=${COREOS_PRIVATE_IPV4} --devices=sdb,sdc,sdd --force-format=true
Cleanup
Between runs you may want to clean everything up and start over. In this case, run the script on each of the nodes in the cluster:
clean-castled.sh
This script is found in the scripts folder of this repo.