This commit is contained in:
D4rk4 2020-07-31 16:53:50 +02:00
parent bcca957c21
commit abc8d04f2f
2 changed files with 8 additions and 5 deletions

View file

@ -13,9 +13,9 @@ k8sDeploy () {
ansible-playbook bootstrap-node.yml && \
ansible-playbook init-cluster.yml
}
InstallIngress () {
}
#InstallIngress () {
#
#}
if [ ! -f ${bootflag} ]; then
touch ${bootflag}

View file

@ -11,12 +11,15 @@ qemu="${appdir}/contrib/qemu-system-x86_64 -L ${appdir}/contrib/share/qemu -net
wget='wget -cq4O'
###
installvm() {
echo "Allocating ${vmsize} disk..."
fallocate -l ${vmsize} ${k8sdsk}
echo "Downloading Debian installer..."
echo "Downloading Linux kernel..."
${wget} ${apptmp}/kernel ${httpboot}/linux
echo "Downloading Initial ramdisk..."
${wget} ${apptmp}/initrd ${httpboot}/initrd.gz
echo "Preparing K8S VM..."
${qemu} -kernel ${apptmp}/kernel -initrd ${apptmp}/initrd -append "console=ttyS0,115200n8 apt-setup/proposed=true nomodeset fb=false priority=critical locale=en_US url=${seed}"
echo "Housekeeping..."
rm -f ${apptmp}/kernel ${apptmp}/initrd
}
runvm() {