Use kubelet-wrapper provided by CoreOS
The kubelet binary and service file from the CoreOS image has been removed. As of CoreOS release v962.0.0 following executable script: /usr/lib/coreos/kubelet-wrapper is included in CoreOS image. Only need to set KUBELET_VERSION environment variable to use this script Change-Id: I7c0bf86c549116fb250f33fe7ee4429553febb6f Closes-Bug: #1605554
This commit is contained in:
parent
88c8543567
commit
8cd71a6905
|
@ -27,7 +27,8 @@ write_files:
|
|||
CONF_FILE=/etc/systemd/system/kubelet.service
|
||||
cat > $CONF_FILE <<EOF
|
||||
[Service]
|
||||
ExecStart=/usr/bin/kubelet \
|
||||
Environment=KUBELET_VERSION=${KUBE_VERSION}_coreos.0
|
||||
ExecStart=/usr/lib/coreos/kubelet-wrapper \
|
||||
--api_servers=http://127.0.0.1:8080 \
|
||||
--address=0.0.0.0 \
|
||||
--register-node=false \
|
||||
|
|
|
@ -40,7 +40,8 @@ write_files:
|
|||
CONF_FILE=/etc/systemd/system/kubelet.service
|
||||
cat > $CONF_FILE <<EOF
|
||||
[Service]
|
||||
ExecStart=/usr/bin/kubelet \
|
||||
Environment=KUBELET_VERSION=${KUBE_VERSION}_coreos.0
|
||||
ExecStart=/usr/lib/coreos/kubelet-wrapper \
|
||||
--api_servers=${KUBE_MASTER_URI} \
|
||||
--address=0.0.0.0 \
|
||||
--register-node=true \
|
||||
|
|
Loading…
Reference in New Issue