services for bootstrapping
This commit is contained in:
@@ -11,3 +11,5 @@ rc-update add fancontrol boot
|
||||
rc-update add loopback boot
|
||||
rc-update add hostname boot
|
||||
rc-update add localmount boot
|
||||
rc-update add apply-node-config default
|
||||
rc-update add bootstrap-cluster default
|
||||
|
||||
@@ -39,6 +39,7 @@ mkdir -p /var/lib/containers/storage
|
||||
mkdir -p /var/lib/cni
|
||||
mkdir -p /var/log/crio
|
||||
mkdir -p /var/log/kubelet
|
||||
mkdir -p /var/log/monok8s
|
||||
mkdir -p /etc/cni/net.d
|
||||
mkdir -p /opt/cni/bin
|
||||
mkdir -p /etc/kubernetes/manifests
|
||||
|
||||
16
alpine/rootfs-extra/etc/init.d/apply-node-config
Executable file
16
alpine/rootfs-extra/etc/init.d/apply-node-config
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
|
||||
|
||||
name="Apply node config"
|
||||
description="Apply node configurations using node.env from /opt/monok8s/config"
|
||||
|
||||
command="/opt/monok8s/scripts/apply-node-config.sh"
|
||||
command_background="no"
|
||||
|
||||
output_log="/var/log/monok8s/apply-node-config.log"
|
||||
error_log="/var/log/monok8s/apply-node-config.err"
|
||||
|
||||
depend() {
|
||||
need localmount
|
||||
}
|
||||
17
alpine/rootfs-extra/etc/init.d/bootstrap-cluster
Executable file
17
alpine/rootfs-extra/etc/init.d/bootstrap-cluster
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
|
||||
|
||||
name="Bootstrap cluster"
|
||||
description="Apply node configurations using node.env from /opt/monok8s/config"
|
||||
|
||||
command="/opt/monok8s/scripts/bootstrap-cluster.sh"
|
||||
command_background="no"
|
||||
|
||||
output_log="/var/log/monok8s/bootstrap.log"
|
||||
error_log="/var/log/monok8s/bootstrap.err"
|
||||
|
||||
depend() {
|
||||
need apply-node-config
|
||||
use net
|
||||
}
|
||||
Reference in New Issue
Block a user