mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 06:51:26 +02:00
app-admin/kubelet: add service unit
This commit is contained in:
parent
f75d0a0c2e
commit
ce1f29453a
23
sdk_container/src/third_party/coreos-overlay/app-admin/kubelet/files/kubelet.service
vendored
Normal file
23
sdk_container/src/third_party/coreos-overlay/app-admin/kubelet/files/kubelet.service
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Kubernetes Kubelet
|
||||||
|
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Environment=ADDRESS=127.0.0.1
|
||||||
|
Environment=API_SERVERS=http://127.0.0.1:8080
|
||||||
|
Environment=ALLOW_PRIVILEGED=false
|
||||||
|
Environment=CONFIG=/etc/kubernetes/manifests
|
||||||
|
Environment=LOGGING=2
|
||||||
|
|
||||||
|
ExecStart=/usr/bin/kubelet \
|
||||||
|
--address=$ADDRESS \
|
||||||
|
--api-servers=$API_SERVERS \
|
||||||
|
--allow-privileged=$ALLOW_PRIVILEGED \
|
||||||
|
--config=$CONFIG \
|
||||||
|
--v=$LOGGING
|
||||||
|
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
EAPI=5
|
EAPI=5
|
||||||
|
|
||||||
inherit flag-o-matic toolchain-funcs
|
inherit flag-o-matic systemd toolchain-funcs
|
||||||
|
|
||||||
DESCRIPTION="Kubernetes Container Manager"
|
DESCRIPTION="Kubernetes Container Manager"
|
||||||
HOMEPAGE="http://kubernetes.io/"
|
HOMEPAGE="http://kubernetes.io/"
|
||||||
@ -42,4 +42,6 @@ src_compile() {
|
|||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dobin "${S}/_output/local/bin/linux/${ARCH}/${PN}"
|
dobin "${S}/_output/local/bin/linux/${ARCH}/${PN}"
|
||||||
|
|
||||||
|
systemd_dounit "${FILESDIR}/kubelet.service"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user