This document is intended to provide contributors with an introduction to develop LC(LocalController) of the Sedna project.
1. config LC:
Setting up the environments:
GM_ADDRESS
: the addresss of GM.NODENAME
: the node name at which LC running.ROOTFS_MOUNT_DIR
: the directory of the host mounts, default/rootfs
.
# update these values if neccessary
export GM_ADDRESS=192.168.0.10:9000
export NODENAME=edge-node
export ROOTFS_MOUNT_DIR=""
Note: If you have already run Sedna by following the install doc, and decide to run LC in-place, you don't need to setup these environments, run
make lcimage
andkubectl -n sedna delete pod lc-<pod-name>
.
2. compile and run LC directly:
make WHAT=lc
_output/bin/sedna-lc -v4
Alternatively you can debug LC with golang delve:
dlv debug cmd/sedna-lc/sedna-lc.go -- -v4