More kmods for kubelet
This commit is contained in:
@@ -5,3 +5,6 @@ PARTLABEL=data /data ext4 rw,noatime,nodiratime
|
||||
|
||||
tmpfs /run tmpfs defaults,nosuid,nodev,mode=0755 0 0
|
||||
tmpfs /tmp tmpfs defaults,nosuid,nodev,noexec,mode=1777 0 0
|
||||
|
||||
# Do this on Prodution
|
||||
# tmpfs /var/log tmpfs defaults,nosuid,nodev,noexec,mode=0755 0 0
|
||||
|
||||
@@ -5,12 +5,19 @@ 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"
|
||||
command="/opt/scripts/apply-node-config.sh"
|
||||
|
||||
output_log="/var/log/monok8s/apply-node-config.log"
|
||||
error_log="/var/log/monok8s/apply-node-config.err"
|
||||
LOG_DIR="/var/log/monok8s"
|
||||
LOG_FILE="$LOG_DIR/apply-node-config.log"
|
||||
|
||||
depend() {
|
||||
need localmount
|
||||
}
|
||||
|
||||
start() {
|
||||
checkpath --directory "$LOG_DIR"
|
||||
|
||||
ebegin "Applying node config"
|
||||
"$command" >>"$LOG_FILE" 2>&1
|
||||
eend $?
|
||||
}
|
||||
|
||||
@@ -3,15 +3,22 @@
|
||||
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
|
||||
|
||||
name="Bootstrap cluster"
|
||||
description="Apply node configurations using node.env from /opt/monok8s/config"
|
||||
description="Apply cluster configurations using node.env from /opt/monok8s/config"
|
||||
|
||||
command="/opt/monok8s/scripts/bootstrap-cluster.sh"
|
||||
command_background="no"
|
||||
command="/opt/scripts/bootstrap-cluster.sh"
|
||||
|
||||
output_log="/var/log/monok8s/bootstrap.log"
|
||||
error_log="/var/log/monok8s/bootstrap.err"
|
||||
LOG_DIR="/var/log/monok8s"
|
||||
LOG_FILE="$LOG_DIR/bootstrap.log"
|
||||
|
||||
depend() {
|
||||
need apply-node-config
|
||||
use net
|
||||
}
|
||||
|
||||
start() {
|
||||
checkpath --directory "$LOG_DIR"
|
||||
|
||||
ebegin "Applying cluster config"
|
||||
"$command" >>"$LOG_FILE" 2>&1 &
|
||||
eend $?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user