Merge "[Docker] Fix upstart ans sysvinit scripts for ubuntu"

This commit is contained in:
Jenkins 2016-08-10 08:56:12 +00:00 committed by Gerrit Code Review
commit 41def34bbd
15 changed files with 20 additions and 20 deletions

View File

@ -1,7 +1,7 @@
#Kube-Apiserver Upstart and SysVinit configuration file #Kube-Apiserver Upstart and SysVinit configuration file
# Customize kube-apiserver binary location # Customize kube-apiserver binary location
KUBE_APISERVER="/opt/bin/hyperkube apiserver" KUBE_APISERVER="/opt/bin/hyperkube"
# Use KUBE_APISERVER_OPTS to modify the start/restart options # Use KUBE_APISERVER_OPTS to modify the start/restart options
KUBE_APISERVER_OPTS="--address=0.0.0.0 \ KUBE_APISERVER_OPTS="--address=0.0.0.0 \

View File

@ -1,7 +1,7 @@
# Kube-Controller-Manager Upstart and SysVinit configuration file # Kube-Controller-Manager Upstart and SysVinit configuration file
# Customize kube-controller-manager binary location # Customize kube-controller-manager binary location
KUBE_CONTROLLER_MANAGER="/opt/bin/hyperkube controller-manager" KUBE_CONTROLLER_MANAGER="/opt/bin/hyperkube"
# Use KUBE_CONTROLLER_MANAGER_OPTS to modify the start/restart options # Use KUBE_CONTROLLER_MANAGER_OPTS to modify the start/restart options
KUBE_CONTROLLER_MANAGER_OPTS="--master=127.0.0.1:8080 \ KUBE_CONTROLLER_MANAGER_OPTS="--master=127.0.0.1:8080 \

View File

@ -1,7 +1,7 @@
# Kube-Proxy Upstart and SysVinit configuration file # Kube-Proxy Upstart and SysVinit configuration file
# Customize kube-proxy binary location # Customize kube-proxy binary location
KUBE_PROXY="/opt/bin/hyperkube proxy" KUBE_PROXY="/opt/bin/hyperkube"
# Use KUBE_PROXY_OPTS to modify the start/restart options # Use KUBE_PROXY_OPTS to modify the start/restart options
KUBE_PROXY_OPTS="--logtostderr=false --master=http://%%MASTER_IP%%:8080 --log_dir=/var/log/kubernetes" KUBE_PROXY_OPTS="--logtostderr=false --master=http://%%MASTER_IP%%:8080 --log_dir=/var/log/kubernetes"

View File

@ -1,7 +1,7 @@
# Kube-Scheduler Upstart and SysVinit configuration file # Kube-Scheduler Upstart and SysVinit configuration file
# Customize kube-apiserver binary location # Customize kube-apiserver binary location
KUBE_SCHEDULER="/opt/bin/hyperkube scheduler" KUBE_SCHEDULER="/opt/bin/hyperkube"
# Use KUBE_SCHEDULER_OPTS to modify the start/restart options # Use KUBE_SCHEDULER_OPTS to modify the start/restart options
KUBE_SCHEDULER_OPTS="--logtostderr=false --log_dir=/var/log/kubernetes \ KUBE_SCHEDULER_OPTS="--logtostderr=false --log_dir=/var/log/kubernetes \

View File

@ -1,7 +1,7 @@
# Kubelet Upstart and SysVinit configuration file # Kubelet Upstart and SysVinit configuration file
# Customize kubelet binary location # Customize kubelet binary location
KUBELET="/opt/bin/hyperkube kubelet" KUBELET="/opt/bin/hyperkube"
# Use KUBELET_OPTS to modify the start/restart options # Use KUBELET_OPTS to modify the start/restart options
KUBELET_OPTS="--address=%%IP%% \ KUBELET_OPTS="--address=%%IP%% \

View File

@ -9,7 +9,7 @@ stop on stopping etcd
pre-start script pre-start script
# see also https://github.com/jainvipin/kubernetes-start # see also https://github.com/jainvipin/kubernetes-start
KUBE_APISERVER=/opt/bin/hyperkube apiserver KUBE_APISERVER=/opt/bin/$UPSTART_JOB
if [ -f /etc/default/$UPSTART_JOB ]; then if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB . /etc/default/$UPSTART_JOB
fi fi
@ -26,7 +26,7 @@ script
if [ -f /etc/default/$UPSTART_JOB ]; then if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB . /etc/default/$UPSTART_JOB
fi fi
exec "$KUBE_APISERVER" $KUBE_APISERVER_OPTS exec $KUBE_APISERVER apiserver $KUBE_APISERVER_OPTS
end script end script
start on runlevel [235] start on runlevel [235]

View File

@ -9,7 +9,7 @@ stop on stopping etcd
pre-start script pre-start script
# see also https://github.com/jainvipin/kubernetes-ubuntu-start # see also https://github.com/jainvipin/kubernetes-ubuntu-start
KUBE_CONTROLLER_MANAGER=/opt/bin/hyperkube controller-manager KUBE_CONTROLLER_MANAGER=/opt/bin/$UPSTART_JOB
if [ -f /etc/default/$UPSTART_JOB ]; then if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB . /etc/default/$UPSTART_JOB
fi fi
@ -26,7 +26,7 @@ script
if [ -f /etc/default/$UPSTART_JOB ]; then if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB . /etc/default/$UPSTART_JOB
fi fi
exec "$KUBE_CONTROLLER_MANAGER" $KUBE_CONTROLLER_MANAGER_OPTS exec $KUBE_CONTROLLER_MANAGER controller-manager $KUBE_CONTROLLER_MANAGER_OPTS
end script end script
start on runlevel [235] start on runlevel [235]

View File

@ -9,7 +9,7 @@ stop on stopping etcd
pre-start script pre-start script
# see also https://github.com/jainvipin/kubernetes-start # see also https://github.com/jainvipin/kubernetes-start
KUBE_PROXY=/opt/bin/hyperkube proxy KUBE_PROXY=/opt/bin/$UPSTART_JOB
if [ -f /etc/default/$UPSTART_JOB ]; then if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB . /etc/default/$UPSTART_JOB
fi fi
@ -26,7 +26,7 @@ script
if [ -f /etc/default/$UPSTART_JOB ]; then if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB . /etc/default/$UPSTART_JOB
fi fi
exec "$KUBE_PROXY" $KUBE_PROXY_OPTS exec $KUBE_PROXY proxy $KUBE_PROXY_OPTS
end script end script
start on runlevel [235] start on runlevel [235]

View File

@ -9,7 +9,7 @@ stop on stopping etcd
pre-start script pre-start script
# see also https://github.com/jainvipin/kubernetes-start # see also https://github.com/jainvipin/kubernetes-start
KUBE_SCHEDULER=/opt/bin/hyperkube scheduler KUBE_SCHEDULER=/opt/bin/$UPSTART_JOB
if [ -f /etc/default/$UPSTART_JOB ]; then if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB . /etc/default/$UPSTART_JOB
fi fi
@ -26,7 +26,7 @@ script
if [ -f /etc/default/$UPSTART_JOB ]; then if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB . /etc/default/$UPSTART_JOB
fi fi
exec "$KUBE_SCHEDULER" $KUBE_SCHEDULER_OPTS exec $KUBE_SCHEDULER scheduler $KUBE_SCHEDULER_OPTS
end script end script
start on runlevel [235] start on runlevel [235]

View File

@ -9,7 +9,7 @@ stop on stopping etcd
pre-start script pre-start script
# see also https://github.com/jainvipin/kubernetes-ubuntu-start # see also https://github.com/jainvipin/kubernetes-ubuntu-start
KUBELET=/opt/bin/hyperkube kubelet KUBELET=/opt/bin/$UPSTART_JOB
if [ -f /etc/default/$UPSTART_JOB ]; then if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB . /etc/default/$UPSTART_JOB
fi fi
@ -26,7 +26,7 @@ script
if [ -f /etc/default/$UPSTART_JOB ]; then if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB . /etc/default/$UPSTART_JOB
fi fi
exec "$KUBELET" $KUBELET_OPTS exec $KUBELET kubelet $KUBELET_OPTS
end script end script
start on runlevel [235] start on runlevel [235]

View File

@ -19,7 +19,7 @@ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/opt/bi
BASE=$(basename $0) BASE=$(basename $0)
# modify these in /etc/default/$BASE (/etc/default/kube-apiserver) # modify these in /etc/default/$BASE (/etc/default/kube-apiserver)
KUBE_APISERVER=/opt/bin/hyperkube apiserver KUBE_APISERVER="/opt/bin/hyperkube apiserver"
# This is the pid file managed by kube-apiserver itself # This is the pid file managed by kube-apiserver itself
KUBE_APISERVER_PIDFILE=/var/run/$BASE.pid KUBE_APISERVER_PIDFILE=/var/run/$BASE.pid
KUBE_APISERVER_LOGFILE=/var/log/$BASE.log KUBE_APISERVER_LOGFILE=/var/log/$BASE.log

View File

@ -19,7 +19,7 @@ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/opt/bi
BASE=$(basename $0) BASE=$(basename $0)
# modify these in /etc/default/$BASE (/etc/default/kube-controller-manager) # modify these in /etc/default/$BASE (/etc/default/kube-controller-manager)
KUBE_CONTROLLER_MANAGER=/opt/bin/hyperkube controller-manager KUBE_CONTROLLER_MANAGER="/opt/bin/hyperkube controller-manager"
# This is the pid file managed by kube-controller-manager itself # This is the pid file managed by kube-controller-manager itself
KUBE_CONTROLLER_MANAGER_PIDFILE=/var/run/$BASE.pid KUBE_CONTROLLER_MANAGER_PIDFILE=/var/run/$BASE.pid
KUBE_CONTROLLER_MANAGER_LOGFILE=/var/log/$BASE.log KUBE_CONTROLLER_MANAGER_LOGFILE=/var/log/$BASE.log

View File

@ -19,7 +19,7 @@ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/opt/bi
BASE=$(basename $0) BASE=$(basename $0)
# modify these in /etc/default/$BASE (/etc/default/kube-proxy) # modify these in /etc/default/$BASE (/etc/default/kube-proxy)
KUBE_PROXY=/opt/bin/hyperkube proxy KUBE_PROXY="/opt/bin/hyperkube proxy"
# This is the pid file managed by kube-proxy itself # This is the pid file managed by kube-proxy itself
KUBE_PROXY_PIDFILE=/var/run/$BASE.pid KUBE_PROXY_PIDFILE=/var/run/$BASE.pid
KUBE_PROXY_LOGFILE=/var/log/$BASE.log KUBE_PROXY_LOGFILE=/var/log/$BASE.log

View File

@ -19,7 +19,7 @@ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/opt/bi
BASE=$(basename $0) BASE=$(basename $0)
# modify these in /etc/default/$BASE (/etc/default/kube-scheduler) # modify these in /etc/default/$BASE (/etc/default/kube-scheduler)
KUBE_SCHEDULER=/opt/bin/hyperkube scheduler KUBE_SCHEDULER="/opt/bin/hyperkube scheduler"
# This is the pid file managed by kube-scheduler itself # This is the pid file managed by kube-scheduler itself
KUBE_SCHEDULER_PIDFILE=/var/run/$BASE.pid KUBE_SCHEDULER_PIDFILE=/var/run/$BASE.pid
KUBE_SCHEDULER_LOGFILE=/var/log/$BASE.log KUBE_SCHEDULER_LOGFILE=/var/log/$BASE.log

View File

@ -19,7 +19,7 @@ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/opt/bi
BASE=$(basename $0) BASE=$(basename $0)
# modify these in /etc/default/$BASE (/etc/default/kube-apiserver) # modify these in /etc/default/$BASE (/etc/default/kube-apiserver)
KUBELET=/opt/bin/hyperkube kubelet KUBELET="/opt/bin/hyperkube kubelet"
# This is the pid file managed by kube-apiserver itself # This is the pid file managed by kube-apiserver itself
KUBELET_PIDFILE=/var/run/$BASE.pid KUBELET_PIDFILE=/var/run/$BASE.pid
KUBELET_LOGFILE=/var/log/$BASE.log KUBELET_LOGFILE=/var/log/$BASE.log