This document describes the procedure to deploy DL workspace cluster via PXE server. __The procedure will automatically wipe out the system disk and deploy a CoreOS image of DL workspace cluster__ to all machines that are on the same subnet and served by the PXE server. Please proceed with caution.
./deploy.py build pxe
build PXE server for CoreOS deployment.
./deploy.py build pxe-ubuntu
build PXE server for Ubuntu deployment (currently 16.04.2)
docker run --privileged --net=host -ti [DOCKER_IMAGE] bash
vi /etc/default/isc-dhcp-server
vi /var/lib/tftpboot/pxelinux.cfg/default
You may want to modify the following parameters:
ONTIMEOUT and DEFAULT: change both to 1. coreosmaster: to deploy Kubernetes master 2. coreosetcd: to deploy Kubernetes etcd servers 3. coreosworker: to deploy Kubernetes worker nodes
start_pxe_service.sh
[CoreOS PXEServer] Once PXE server has been started, any node that are booted on the same VLAN of the PXE server will have its system drive wiped out, and deployed for a Kubernetes master, etcd server, or worker node. Thus, please proceed with caution.
[Ubuntu PXE Server] Ubuntu will default to boot to local drive, and you will need to select deploy Ubuntu server to deploy the server image.
.\deploy.py sshkey install
Ubuntu setup need to first insert sshkey into target machine.