Rainbond/hack/deb/debian-stretch/debian/gr-rainbond-node.rainbond-node.default
2017-11-20 12:03:39 +08:00

13 lines
459 B
Bash

#!/bin/sh
ETCD_ADDR=$(cat /etc/goodrain/envs/etcd.sh | awk -F '=' '{print $2}')
if [ -z $NODE_TYPE ];then
eval $(ssh-agent) > /dev/null
eval $(ssh-add) > /dev/null
#eval $(ssh-add /path/key) > /dev/null
ACP_NODE_OPTS="--static-task-path=/usr/share/gr-rainbond-node/gaops/tasks/ --etcd=http://$ETCD_ADDR:2379 --kube-conf=/etc/goodrain/kubernetes/kubeconfig --run-mode master --noderule manage"
else
ACP_NODE_OPTS='--log-level=debug'
fi