mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 22:41:09 +02:00
Merge pull request #1428 from crawford/unit
app-admin/kubelet: add service unit
This commit is contained in:
commit
e8010c3812
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
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
inherit flag-o-matic systemd toolchain-funcs
|
||||
|
||||
DESCRIPTION="Kubernetes Container Manager"
|
||||
HOMEPAGE="http://kubernetes.io/"
|
||||
@ -42,4 +42,6 @@ src_compile() {
|
||||
|
||||
src_install() {
|
||||
dobin "${S}/_output/local/bin/linux/${ARCH}/${PN}"
|
||||
|
||||
systemd_dounit "${FILESDIR}/kubelet.service"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user