Fixing 'systemd restart docker' command in kubemark master

This commit is contained in:
Shyam Jeedigunta 2016-12-20 17:38:31 +01:00
parent 733faf5280
commit ac30fb28bd

View File

@ -141,7 +141,7 @@ function assemble-docker-flags {
# TODO(shyamjvs): Incorporate network plugin options, etc later. # TODO(shyamjvs): Incorporate network plugin options, etc later.
echo "DOCKER_OPTS=\"${docker_opts}\"" > /etc/default/docker echo "DOCKER_OPTS=\"${docker_opts}\"" > /etc/default/docker
echo "DOCKER_NOFILE=65536" >> /etc/default/docker # For setting ulimit -n echo "DOCKER_NOFILE=65536" >> /etc/default/docker # For setting ulimit -n
systemd restart docker systemctl restart docker
} }
# A helper function for loading a docker image. It keeps trying up to 5 times. # A helper function for loading a docker image. It keeps trying up to 5 times.
@ -225,6 +225,9 @@ function start-kubelet {
local -r kubelet_bin="/usr/bin/kubelet" local -r kubelet_bin="/usr/bin/kubelet"
create-kubelet-conf "${kubelet_bin}" create-kubelet-conf "${kubelet_bin}"
# Flush iptables nat table
iptables -t nat -F || true
# Start the kubelet service. # Start the kubelet service.
systemctl start kubelet.service systemctl start kubelet.service
} }