Changes for use with kubernetes
Changes for use with kubernetes

1. Use docker id if no id is provided as argument
2. use $SERVICE_HOST (set by kubernetes) if no ip is provided as argument
3. use $HOSTPORT (set in pod config) for registering in etcd if provided

INAETICS/node-provisioning-service