mirror of https://github.com/kubernetes/kops.git
18 lines
759 B
YAML
18 lines
759 B
YAML
Name: kops-hook-0.service
|
|
definition: |
|
|
[Unit]
|
|
Description=Kops Hook kops-hook-0
|
|
Requires=containerd.service
|
|
|
|
[Service]
|
|
ExecStartPre=/usr/bin/ctr --namespace k8s.io image pull docker.io/library/busybox:latest
|
|
ExecStart=/usr/bin/ctr --namespace k8s.io run --rm --mount type=bind,src=/,dst=/rootfs,options=rbind:rslave --mount type=bind,src=/var/run/dbus,dst=/var/run/dbus,options=rbind:rprivate --mount type=bind,src=/run/systemd,dst=/run/systemd,options=rbind:rprivate --net-host --privileged docker.io/library/busybox:latest kops-hook-0 sh -c "chroot /rootfs apt-get update && chroot /rootfs apt-get install -y ceph-common"
|
|
Type=oneshot
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
enabled: true
|
|
manageState: true
|
|
running: true
|
|
smartRestart: true
|