This is a source repository for docker image to run dictyBase data migration tasks. The docker container setup is based on radial topology.
The migration task is run using kubernetes. Kubernetes can be run both locally(dev version) and in google compute engine. For both the cases, kubectl command line client need to be installed.
$_> docker-compose -f k8s-local.yml
$_> cd spoke-postgresql/kubernetes/k8s-local
/mnt/docker/database
folder need to exist, if not alter the configuration
accordingly in the volume.json
file.$_> kubectl create -f volume.json; kubectl create -f claim.json
The above with create a 25G of persistent volume and a 20G of persistent claim. To change any of the default parameter change the configurations accordingly.
$_> kubectl create -f service.json; kubectl create -f pod.json
$_> cd kubernetes
$_> cluster/kube-up.sh
$_> gcloud compute disks create --size 30GB database-disk.
The disk size cannot be below 25GB.
$_> kubectl create -f volume.json; kubectl create -f claim.json
example_secrets.json
to secrets.json
(any
other name will also work) and fill up all the seven fields. All fields need to be
base64 encoded.$_> kubectl create -f secrets.json
$_> kubectl create -f service.json; kubectl create -f pod-pvc-secret.json