adjusted bootstrap scripts to have well-defined lb vs ingress
This commit is contained in:
parent
6927f5f175
commit
8109669fa0
1
groups/loadbalance
Normal file
1
groups/loadbalance
Normal file
@ -0,0 +1 @@
|
|||||||
|
apollo
|
||||||
@ -1,14 +1,14 @@
|
|||||||
controller:
|
controller:
|
||||||
tolerations:
|
tolerations:
|
||||||
- effect: NoSchedule
|
- effect: NoSchedule
|
||||||
key: compute
|
key: ingress
|
||||||
admissionWebhooks:
|
admissionWebhooks:
|
||||||
patch:
|
patch:
|
||||||
tolerations:
|
tolerations:
|
||||||
- effect: NoSchedule
|
- effect: NoSchedule
|
||||||
key: compute
|
key: ingress
|
||||||
|
|
||||||
defaultBackend:
|
defaultBackend:
|
||||||
tolerations:
|
tolerations:
|
||||||
- effect: NoSchedule
|
- effect: NoSchedule
|
||||||
key: compute
|
key: ingress
|
||||||
|
|||||||
@ -1853,7 +1853,7 @@ spec:
|
|||||||
key: node-role.kubernetes.io/control-plane
|
key: node-role.kubernetes.io/control-plane
|
||||||
operator: Exists
|
operator: Exists
|
||||||
- effect: NoSchedule
|
- effect: NoSchedule
|
||||||
key: compute
|
key: loadbalance
|
||||||
volumes:
|
volumes:
|
||||||
- name: memberlist
|
- name: memberlist
|
||||||
secret:
|
secret:
|
||||||
|
|||||||
@ -289,7 +289,7 @@ fi
|
|||||||
|
|
||||||
log "📦 Repackaging extracted files into an ISO image..."
|
log "📦 Repackaging extracted files into an ISO image..."
|
||||||
cd "$tmpdir"
|
cd "$tmpdir"
|
||||||
xorriso -as mkisofs -r -V 'Ubuntu-Server 24.04.1 LTS amd64' --modification-date='2024091107542800' --grub2-mbr --interval:local_fs:0s-15s:zero_mbrpt,zero_gpt:'/home/dtookey/infra/build/ubuntu-original-2024-09-11.iso' --protective-msdos-label -partition_cyl_align off -partition_offset 16 --mbr-force-bootable -append_partition 2 28732ac11ff8d211ba4b00a0c93ec93b --interval:local_fs:5526876d-5537019d::'/home/dtookey/infra/build/ubuntu-original-2024-09-11.iso' -appended_part_as_gpt -iso_mbr_part_type a2a0d0ebe5b9334487c068b6b72699c7 -c '/boot.catalog' -b '/boot/grub/i386-pc/eltorito.img' -no-emul-boot -boot-load-size 4 -boot-info-table --grub2-boot-info -eltorito-alt-boot -e '--interval:appended_partition_2_start_1381719s_size_10144d:all::' -no-emul-boot -boot-load-size 10144 -o "${destination_iso}" . #&>/dev/null
|
xorriso -as mkisofs -r -V 'Ubuntu-Server 24.04.1 LTS amd64' --modification-date='2024091107542800' --grub2-mbr --interval:local_fs:0s-15s:zero_mbrpt,zero_gpt:'/home/dtookey/infra/build/ubuntu-original-2024-09-12.iso' --protective-msdos-label -partition_cyl_align off -partition_offset 16 --mbr-force-bootable -append_partition 2 28732ac11ff8d211ba4b00a0c93ec93b --interval:local_fs:5526876d-5537019d::'/home/dtookey/infra/build/ubuntu-original-2024-09-12.iso' -appended_part_as_gpt -iso_mbr_part_type a2a0d0ebe5b9334487c068b6b72699c7 -c '/boot.catalog' -b '/boot/grub/i386-pc/eltorito.img' -no-emul-boot -boot-load-size 4 -boot-info-table --grub2-boot-info -eltorito-alt-boot -e '--interval:appended_partition_2_start_1381719s_size_10144d:all::' -no-emul-boot -boot-load-size 10144 -o "${destination_iso}" . #&>/dev/null
|
||||||
|
|
||||||
|
|
||||||
cd "$OLDPWD"
|
cd "$OLDPWD"
|
||||||
|
|||||||
@ -17,10 +17,11 @@ ssh -t ares "echo \"virgil ALL=(ALL) NOPASSWD:ALL\" | sudo tee /etc/sudoers.d/pa
|
|||||||
ssh ares "echo \"ares checked in\""
|
ssh ares "echo \"ares checked in\""
|
||||||
|
|
||||||
ssh -t artemis "echo \"virgil ALL=(ALL) NOPASSWD:ALL\" | sudo tee /etc/sudoers.d/passwordless > /dev/null"
|
ssh -t artemis "echo \"virgil ALL=(ALL) NOPASSWD:ALL\" | sudo tee /etc/sudoers.d/passwordless > /dev/null"
|
||||||
ssh artemis "sudo sed -i -e 's/#HandleLidSwitch=suspend/HandleLidSwitch=ignore/g' /etc/systemd/logind.conf"
|
|
||||||
ssh artemis "sudo systemctl restart systemd-logind.service"
|
|
||||||
ssh artemis "echo \"artemis checked in\""
|
ssh artemis "echo \"artemis checked in\""
|
||||||
|
|
||||||
|
ssh -t apollo "echo \"virgil ALL=(ALL) NOPASSWD:ALL\" | sudo tee /etc/sudoers.d/passwordless > /dev/null"
|
||||||
|
ssh apollo "echo \"artemis checked in\""
|
||||||
|
|
||||||
ssh cupid1 "echo \"cupid1 checked in\""
|
ssh cupid1 "echo \"cupid1 checked in\""
|
||||||
ssh cupid2 "echo \"cupid2 checked in\""
|
ssh cupid2 "echo \"cupid2 checked in\""
|
||||||
ssh cupid3 "echo \"cupid3 checked in\""
|
ssh cupid3 "echo \"cupid3 checked in\""
|
||||||
|
|||||||
@ -17,7 +17,9 @@ if [ -z $JTOKEN ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
parallel -a groups/workers ./scripts/setup/kube_worker.sh -n {} -r worker -t $JTOKEN
|
parallel -a groups/workers ./scripts/setup/kube_worker.sh -n {} -r worker -t $JTOKEN
|
||||||
parallel -a groups/compute ./scripts/setup/kube_worker.sh -n {} -r compute -t $JTOKEN
|
parallel -a groups/compute ./scripts/setup/kube_worker.sh -n {} -r ingress -t $JTOKEN
|
||||||
|
parallel -a groups/compute ./scripts/setup/kube_worker.sh -n {} -r loadbalance -t $JTOKEN
|
||||||
|
|
||||||
|
|
||||||
echo "Waiting for 30s for the new pods to settle"
|
echo "Waiting for 30s for the new pods to settle"
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|||||||
@ -24,6 +24,7 @@ if [ -z "$(which docker)" ]; then
|
|||||||
# Add the repository to Apt sources:
|
# Add the repository to Apt sources:
|
||||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu noble stable" | \
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu noble stable" | \
|
||||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y docker-ce docker-ce-cli containerd.io apt-transport-https
|
apt-get install -y docker-ce docker-ce-cli containerd.io apt-transport-https
|
||||||
usermod -aG docker ${USER_NAME}
|
usermod -aG docker ${USER_NAME}
|
||||||
@ -81,3 +82,7 @@ systemctl enable kubelet && systemctl start kubelet
|
|||||||
|
|
||||||
kubeadm config images pull
|
kubeadm config images pull
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
apt-get upgrade -y
|
||||||
|
apt-get autoremove -y
|
||||||
|
|||||||
@ -24,7 +24,7 @@ autoinstall:
|
|||||||
layout:
|
layout:
|
||||||
name: lvm
|
name: lvm
|
||||||
match:
|
match:
|
||||||
size: smallest
|
path: /dev/sda
|
||||||
sizing-policy: scaled
|
sizing-policy: scaled
|
||||||
config:
|
config:
|
||||||
- type: partition
|
- type: partition
|
||||||
@ -33,16 +33,7 @@ autoinstall:
|
|||||||
size: 1G
|
size: 1G
|
||||||
- type: partition
|
- type: partition
|
||||||
id: root-partition
|
id: root-partition
|
||||||
size: 25G
|
size: 100G
|
||||||
storage:
|
|
||||||
layout:
|
|
||||||
name: lvm
|
|
||||||
match:
|
|
||||||
size: largest
|
|
||||||
config:
|
|
||||||
- type: partition
|
|
||||||
id: data-partition
|
|
||||||
size: 256G
|
|
||||||
network:
|
network:
|
||||||
version: 2
|
version: 2
|
||||||
renderer: networkd
|
renderer: networkd
|
||||||
|
|||||||
@ -24,7 +24,7 @@ autoinstall:
|
|||||||
layout:
|
layout:
|
||||||
name: lvm
|
name: lvm
|
||||||
match:
|
match:
|
||||||
size: smallest
|
path: /dev/sda
|
||||||
sizing-policy: scaled
|
sizing-policy: scaled
|
||||||
config:
|
config:
|
||||||
- type: partition
|
- type: partition
|
||||||
@ -33,17 +33,7 @@ autoinstall:
|
|||||||
size: 1G
|
size: 1G
|
||||||
- type: partition
|
- type: partition
|
||||||
id: root-partition
|
id: root-partition
|
||||||
size: 25G
|
size: 100G
|
||||||
storage:
|
|
||||||
layout:
|
|
||||||
name: lvm
|
|
||||||
match:
|
|
||||||
size: largest
|
|
||||||
model: CT*
|
|
||||||
config:
|
|
||||||
- type: partition
|
|
||||||
id: data-partition
|
|
||||||
size: 256G
|
|
||||||
network:
|
network:
|
||||||
version: 2
|
version: 2
|
||||||
renderer: networkd
|
renderer: networkd
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user