Skip to content

Instantly share code, notes, and snippets.

@danehans
Last active October 19, 2015 19:51
Show Gist options
  • Save danehans/137f295285fecff4784f to your computer and use it in GitHub Desktop.
Save danehans/137f295285fecff4784f to your computer and use it in GitHub Desktop.
magnum swarm cnm testing
# kubelet config
[Unit]
Description=Kubernetes Kubelet Server
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
After=docker.service
Requires=docker.service
[Service]
WorkingDirectory=/var/lib/kubelet
EnvironmentFile=-/etc/kubernetes/config
EnvironmentFile=-/etc/kubernetes/kubelet
ExecStart=/usr/bin/kubelet \
$KUBE_LOGTOSTDERR \
$KUBE_LOG_LEVEL \
$KUBELET_API_SERVER \
$KUBELET_ADDRESS \
$KUBELET_PORT \
$KUBELET_HOSTNAME \
$KUBE_ALLOW_PRIV \
$KUBELET_ARGS
Restart=on-failure
[Install]
WantedBy=multi-user.target
# cat /etc/kubernetes/kubelet
###
# kubernetes kubelet (minion) config
# The address for the info server to serve on (set to 0.0.0.0 or "" for all interfaces)
KUBELET_ADDRESS="--address=0.0.0.0"
# The port for the info server to serve on
# KUBELET_PORT="--port=10250"
# You may leave this blank to use the actual hostname
KUBELET_HOSTNAME=""
# location of the api-server
KUBELET_API_SERVER="--api_servers=http://10.0.0.3:8080"
# Add your own!
KUBELET_ARGS="--network_plugin=k8contivnet"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment