diff --git a/scripts/counter/us-ub01-prod-mp-ubnoble--kubeadm b/scripts/counter/us-ub01-prod-mp-ubnoble--kubeadm new file mode 100644 index 0000000..573541a --- /dev/null +++ b/scripts/counter/us-ub01-prod-mp-ubnoble--kubeadm @@ -0,0 +1 @@ +0 diff --git a/scripts/counter/us-ub01-prod-mp-ubnoble-eno1-LDAP b/scripts/counter/us-ub01-prod-mp-ubnoble-eno1-LDAP new file mode 100644 index 0000000..573541a --- /dev/null +++ b/scripts/counter/us-ub01-prod-mp-ubnoble-eno1-LDAP @@ -0,0 +1 @@ +0 diff --git a/scripts/counter/us-ub01-prod-mp-ubnoble-eno1-apache b/scripts/counter/us-ub01-prod-mp-ubnoble-eno1-apache new file mode 100644 index 0000000..573541a --- /dev/null +++ b/scripts/counter/us-ub01-prod-mp-ubnoble-eno1-apache @@ -0,0 +1 @@ +0 diff --git a/scripts/counter/us-ub01-prod-mp-ubnoble-eno1-apache2 b/scripts/counter/us-ub01-prod-mp-ubnoble-eno1-apache2 new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/scripts/counter/us-ub01-prod-mp-ubnoble-eno1-apache2 @@ -0,0 +1 @@ +4 diff --git a/scripts/counter/us-ub01-prod-mp-ubnoble-eno1-kubeadm b/scripts/counter/us-ub01-prod-mp-ubnoble-eno1-kubeadm new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/scripts/counter/us-ub01-prod-mp-ubnoble-eno1-kubeadm @@ -0,0 +1 @@ +3 diff --git a/scripts/counter/us-ub03-prod-mp-ub2204-eno1-microk8s b/scripts/counter/us-ub03-prod-mp-ub2204-eno1-microk8s deleted file mode 100644 index 7ed6ff8..0000000 --- a/scripts/counter/us-ub03-prod-mp-ub2204-eno1-microk8s +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/scripts/createVm.sh b/scripts/createVm.sh index 0fdc6b9..b49fa4e 100755 --- a/scripts/createVm.sh +++ b/scripts/createVm.sh @@ -2,7 +2,8 @@ REGION=us HOSTMACHINE=mc02 VIRTUALMACHINE=mp -OSVERSION=22.04 +#OSVERSION=22.04 +OSVERSION=noble OS=ub NETWORK=en0 if [ "$APP" == "" ] @@ -11,7 +12,7 @@ fi currentHost=`hostname` -CPU=3 +CPU=6 function findEthEthernet { @@ -53,9 +54,9 @@ then HOSTMACHINE="mc01" fi - if [ "us-ub01-prod-pc-ub2404-eth0-kubadm-0" == "$currentHost" ] + if [ "us-ub01-prod-pc-ub2404-eth0-dc-0" == "$currentHost" ] then - HOSTMACHINE="ub03" + HOSTMACHINE="ub01" fi HOSTNAME_PREFIX="$REGION-$HOSTMACHINE-$ENV-$VIRTUALMACHINE-`osVersion $OS $OSVERSION`-$NETWORK-$APP" if [ "$action" == "create" ] @@ -71,7 +72,7 @@ mkdir -p ~/data/$HOSTNAME if [ "$action" == "create" ] then - multipass launch $OSVERSION --name $HOSTNAME --memory 4G --disk 50G --cpus $CPU --network $NETWORK --mount ~/data/$HOSTNAME:/data/ + multipass launch $OSVERSION --name $HOSTNAME --memory 8G --disk 50G --cpus $CPU --network $NETWORK --mount ~/data/$HOSTNAME:/data/ else multipass delete $HOSTNAME --purge diff --git a/scripts/hosts b/scripts/hosts index dab84f6..0b6834e 100755 --- a/scripts/hosts +++ b/scripts/hosts @@ -1,5 +1,3 @@ -us-ub03-prod-mp-ub2204-eno1-microk8s-0 -us-ub03-prod-mp-ub2204-eno1-microk8s-1 -us-ub03-prod-mp-ub2204-eno1-microk8s-2 -us-ub03-prod-mp-ub2204-eno1-microk8s-3 -us-ub03-prod-mp-ub2204-eno1-microk8s-4 +us-ub01-prod-mp-ubnoble-eno1-kubeadm-0 +us-ub01-prod-mp-ubnoble-eno1-kubeadm-1 +us-ub01-prod-mp-ubnoble-eno1-kubeadm-2 diff --git a/scripts/lxc/counter/us-ub01-prod-lxc-ub2404-eno1-apache2 b/scripts/lxc/counter/us-ub01-prod-lxc-ub2404-eno1-apache2 new file mode 100644 index 0000000..573541a --- /dev/null +++ b/scripts/lxc/counter/us-ub01-prod-lxc-ub2404-eno1-apache2 @@ -0,0 +1 @@ +0 diff --git a/scripts/lxc/counter/us-ub01-prod-lxc-ub2404-eno1-microk8s b/scripts/lxc/counter/us-ub01-prod-lxc-ub2404-eno1-microk8s new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/scripts/lxc/counter/us-ub01-prod-lxc-ub2404-eno1-microk8s @@ -0,0 +1 @@ +3 diff --git a/scripts/lxc/counter/us-ub01-prod-lxc-ubnoble-eno1-apache2 b/scripts/lxc/counter/us-ub01-prod-lxc-ubnoble-eno1-apache2 deleted file mode 100644 index 573541a..0000000 --- a/scripts/lxc/counter/us-ub01-prod-lxc-ubnoble-eno1-apache2 +++ /dev/null @@ -1 +0,0 @@ -0 diff --git a/scripts/lxc/counter/us-ub01-prod-lxc-ubnoble-eno1-kubeadm b/scripts/lxc/counter/us-ub01-prod-lxc-ubnoble-eno1-kubeadm deleted file mode 100644 index d00491f..0000000 --- a/scripts/lxc/counter/us-ub01-prod-lxc-ubnoble-eno1-kubeadm +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/scripts/lxc/counter/us-ub01-prod-lxc-ubnoble-eno1-microk8s b/scripts/lxc/counter/us-ub01-prod-lxc-ubnoble-eno1-microk8s deleted file mode 100644 index 7ed6ff8..0000000 --- a/scripts/lxc/counter/us-ub01-prod-lxc-ubnoble-eno1-microk8s +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/scripts/lxc/createVm.sh b/scripts/lxc/createVm.sh index b47b0c1..b1c0276 100755 --- a/scripts/lxc/createVm.sh +++ b/scripts/lxc/createVm.sh @@ -3,7 +3,7 @@ HOSTMACHINE=mc02 VIRTUALMACHINE=lxc #OSVERSION=22.04 -OSVERSION=noble +OSVERSION=24.04 OS=ub NETWORK=en0 if [ "$APP" == "" ] @@ -80,9 +80,13 @@ then #sudo lxc launch ubuntu:22.04 us-ub01-prod-lxc-ub2404-eth0-apache2-2 --network br-eno1 -s default #sudo lxc launch UB2204 us-ub01-prod-lxc-ub2404-eth0-apache2-5 --network br-eno1 -s default - sudo lxc launch UB2204 $HOSTNAME --network br-eno1 -s default + sudo lxc launch ubuntu:24.04 $HOSTNAME --network br-eno1 --vm + sleep 10 #sudo lxc config device add us-ub01-prod-lxc-ubnoble-eno1-kubeadm-0 shared-data disk source=$HOME/data/us-ub01-prod-lxc-ub2404-eth0-apache2-0 path=/data/ - sudo lxc config device add $HOSTNAME shared-data disk source=$HOME/data/$HOSTNAME path=/data/ + sudo lxc config device add $HOSTNAME shared-data disk source=$HOME/data/$HOSTNAME path=/data/ shift=true +# sudo lxc stop $HOSTNAME +# sudo lxc config set $HOSTNAME security.privileged true +# sudo lxc start $HOSTNAME fi else if [ "$VIRTUALMACHINE" == "mp" ] diff --git a/scripts/lxc/hosts b/scripts/lxc/hosts index 664a730..b8ee547 100644 --- a/scripts/lxc/hosts +++ b/scripts/lxc/hosts @@ -1,4 +1,4 @@ - us-ub01-prod-lxc-ubnoble-eno1-microk8s-0 - us-ub01-prod-lxc-ubnoble-eno1-microk8s-1 - us-ub01-prod-lxc-ubnoble-eno1-microk8s-2 - us-ub01-prod-lxc-ubnoble-eno1-microk8s-3 +us-ub01-prod-lxc-ub2404-eno1-apache2-0 +us-ub01-prod-lxc-ub2404-eno1-microk8s-0 +us-ub01-prod-lxc-ub2404-eno1-microk8s-1 +us-ub01-prod-lxc-ub2404-eno1-microk8s-2 diff --git a/scripts/multipassInstallPreRequired.sh b/scripts/multipassInstallPreRequired.sh index 78daf40..f1b4845 100755 --- a/scripts/multipassInstallPreRequired.sh +++ b/scripts/multipassInstallPreRequired.sh @@ -36,6 +36,7 @@ echo $host multipass exec $host -- sudo apt update -y multipass exec $host -- sudo apt install ansible -y + multipass exec $host -- sudo snap install multipass-sshfs -y multipass exec $host -- mkdir repo multipass exec $host -- git config --global user.email "agalyadoss@gmail.com" multipass exec $host -- git config --global user.name "Agalya Ramadoss"