Commit ac30fb28 authored by Shyam Jeedigunta's avatar Shyam Jeedigunta

Fixing 'systemd restart docker' command in kubemark master

parent 733faf52
......@@ -141,7 +141,7 @@ function assemble-docker-flags {
# TODO(shyamjvs): Incorporate network plugin options, etc later.
echo "DOCKER_OPTS=\"${docker_opts}\"" > /etc/default/docker
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.
......@@ -225,6 +225,9 @@ function start-kubelet {
local -r kubelet_bin="/usr/bin/kubelet"
create-kubelet-conf "${kubelet_bin}"
# Flush iptables nat table
iptables -t nat -F || true
# Start the kubelet service.
systemctl start kubelet.service
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment