Skip to content

Instantly share code, notes, and snippets.

@sroze
Last active September 17, 2019 02:53
Show Gist options
  • Save sroze/b861e444db0c51d19fc7 to your computer and use it in GitHub Desktop.
Save sroze/b861e444db0c51d19fc7 to your computer and use it in GitHub Desktop.
Kuberlet upstart
IP=127.0.0.1 # Or your public/private IP
KUBELET_OPTIONS="--api_servers=http://$IP:8080 --v=2 --address=0.0.0.0 --enable_server --hostname_override=$IP --config=/etc/kubernetes/manifests"
KUBELET_OPTIONS="--api_servers=http://${MASTER_IP}:8080 --v=2 --address=0.0.0.0 --enable_server --hostname_override=$(hostname)"
description "Kubernetes Kubelet"
script
KUBELET_OPTIONS=
if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB
fi
exec "hyperkube" kubelet $KUBELET_OPTIONS
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment