Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container control plane #1318

Draft
wants to merge 69 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
9273b4b
feat: Provision & provision k8s opts
aerosouund Aug 17, 2024
9a86050
feat/refactor: Introduce the KubevirtProvider type
aerosouund Aug 17, 2024
977d81e
refactor: Rewrite run.go to use the KubevirtProvider
aerosouund Aug 17, 2024
79b1d7a
refactor: Rewrite provision.go to use the KubevirtProvider
aerosouund Oct 4, 2024
29a2bc4
refactor: Delete the nodesconfig package
aerosouund Aug 17, 2024
9b07a17
testing: Move testing logic to the providers package
aerosouund Aug 17, 2024
d0f4bca
feat: Introduce retries in ssh connection in the ssh client
aerosouund Aug 17, 2024
7cfb650
refactor: Change the return type of GetPublicPort to uint instead of …
aerosouund Oct 2, 2024
c68122c
feat: CRI package
aerosouund Sep 30, 2024
0bd7601
control plane stuff
aerosouund Oct 1, 2024
c22baab
control plane stuff
aerosouund Oct 1, 2024
d483708
more control plane stuff
aerosouund Oct 6, 2024
8f01693
networking
aerosouund Oct 23, 2024
71edf3b
use net parse ip
aerosouund Nov 2, 2024
9ebcf45
minor fixes
aerosouund Nov 2, 2024
24cda57
k8s version
aerosouund Nov 2, 2024
fdb01e6
use versionmap
aerosouund Nov 2, 2024
ffc6026
use versionmap
aerosouund Nov 2, 2024
b4b6c2d
control plane fixes
aerosouund Nov 3, 2024
cab837c
add apiserver port parameter
aerosouund Nov 3, 2024
9b64a55
fix registry container
aerosouund Nov 3, 2024
5f1cf63
no newline
aerosouund Nov 3, 2024
9ad1c14
use 110 as the container control plane ip
aerosouund Nov 5, 2024
cad2f5a
forward port 6443 to the container control plane
aerosouund Nov 5, 2024
64d8ecc
join the control plane container
aerosouund Nov 5, 2024
de88a87
scheduler
aerosouund Nov 5, 2024
8488868
exec sleep
aerosouund Nov 5, 2024
c15a345
hack
aerosouund Nov 5, 2024
c1387fc
bash arithmetic
aerosouund Nov 5, 2024
ddb41dc
use other iface
aerosouund Nov 5, 2024
b4fc880
create iface once
aerosouund Nov 5, 2024
038e5b4
execute qemu
aerosouund Nov 5, 2024
31eac32
dont start k8s
aerosouund Nov 5, 2024
87d48a3
run bootstrap auth resources phase
aerosouund Nov 5, 2024
1a443b4
run bootstrap auth resources phase
aerosouund Nov 5, 2024
06fb476
cni phase
aerosouund Nov 5, 2024
209a1d2
sysctl
aerosouund Nov 5, 2024
c51aa94
privileged kubeproxy
aerosouund Nov 5, 2024
aa5060b
privileged kubeproxy
aerosouund Nov 5, 2024
caf4edc
allow privilage escalation smh
aerosouund Nov 5, 2024
51b2a3f
ip
aerosouund Nov 6, 2024
77a60b2
corends
aerosouund Nov 6, 2024
dd80ea7
ip
aerosouund Nov 6, 2024
8c8b74a
coredns
aerosouund Nov 6, 2024
fe05107
add control plane container parameter
aerosouund Nov 6, 2024
5c853b4
create local volume opt
aerosouund Nov 6, 2024
5fdd8c9
add prefix to the control plane container
aerosouund Nov 6, 2024
e3abee4
add prefix
aerosouund Nov 6, 2024
a5fc4df
runtime wont be available in the container
aerosouund Nov 6, 2024
f8f4de6
mount runtime
aerosouund Nov 6, 2024
48bdb9a
mount runtime
aerosouund Nov 6, 2024
63d6f33
mount runtime
aerosouund Nov 6, 2024
3387931
debug
aerosouund Nov 6, 2024
d5664b3
mount binaries
aerosouund Nov 6, 2024
1f4d649
use default name
aerosouund Nov 8, 2024
68f5014
kwok opt
aerosouund Nov 8, 2024
1321a81
authenticate the api server
aerosouund Nov 8, 2024
500b641
add fake control plane label
aerosouund Nov 8, 2024
8ffbf2b
label node correctly
aerosouund Nov 8, 2024
7fdcb41
request header
aerosouund Nov 8, 2024
e09e1e7
different iptables
aerosouund Nov 9, 2024
2adba05
kubeconfig
aerosouund Nov 9, 2024
1216e70
konnectivity
aerosouund Nov 16, 2024
a0024d8
crt
aerosouund Nov 16, 2024
0f71564
port 0
aerosouund Nov 16, 2024
f38f943
agent
aerosouund Nov 16, 2024
c8e9edb
already exists
aerosouund Nov 16, 2024
3849806
mount etc
aerosouund Nov 16, 2024
e3c68c7
dont even remember why i did this
aerosouund Nov 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions cluster-provision/centos9/scripts/dnsmasq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -ex

NUM_NODES=${NUM_NODES-1}
NUM_SECONDARY_NICS=${NUM_SECONDARY_NICS:-0}
SEQ_START=1

ip link add br0 type bridge
echo 0 > /proc/sys/net/ipv6/conf/br0/disable_ipv6
Expand All @@ -18,18 +19,32 @@ for snet in $(seq 1 ${NUM_SECONDARY_NICS}); do
ip link set dev br${snet} up
done

for i in $(seq 1 ${NUM_NODES}); do
# if the number is one then do the normal thing, if its higher than one then do the manual ip thingy
i=1
while [ $i -le ${NUM_NODES} ]; do
if [ ${NUM_NODES} -gt 1 ] && [ $i -eq 1 ]; then
ip tuntap add dev tap101 mode tap user $(whoami)
ip link set tap101 master br0
ip link set dev tap101 up
ip addr add 192.168.66.110/24 dev tap101
ip -6 addr add fd00::110 dev tap101
iptables -t nat -A PREROUTING -p tcp -i eth0 -m tcp --dport 6443 -j DNAT --to-destination 192.168.66.110:6443
fi

n="$(printf "%02d" ${i})"
ip tuntap add dev tap${n} mode tap user $(whoami)
ip link set tap${n} master br0
ip link set dev tap${n} up
DHCP_HOSTS="${DHCP_HOSTS} --dhcp-host=52:55:00:d1:55:${n},192.168.66.1${n},[fd00::1${n}],node${n},infinite"

for s in $(seq 1 ${NUM_SECONDARY_NICS}); do
tap_name=stap$(($i - 1))-$(($s - 1))
ip tuntap add dev $tap_name mode tap user $(whoami)
ip link set $tap_name master br${s}
ip link set dev $tap_name up
done

((i++)) # Increment for the main loop
done

# Make sure that all VMs can reach the internet
Expand All @@ -40,4 +55,4 @@ ip6tables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
ip6tables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
ip6tables -A FORWARD -i br0 -o eth0 -j ACCEPT

exec dnsmasq --interface=br0 --enable-ra --dhcp-option=option6:dns-server,[::] -d ${DHCP_HOSTS} --dhcp-range=192.168.66.10,192.168.66.200,infinite --dhcp-range=::10,::200,constructor:br0,static
exec dnsmasq --interface=br0 --enable-ra --dhcp-option=option6:dns-server,[::] -d ${DHCP_HOSTS} --dhcp-range=192.168.66.10,192.168.66.200,infinite --dhcp-range=::10,::200,constructor:br0,static
64 changes: 0 additions & 64 deletions cluster-provision/gocli/cmd/nodesconfig/nodeconfig.go

This file was deleted.

209 changes: 0 additions & 209 deletions cluster-provision/gocli/cmd/nodesconfig/opts.go

This file was deleted.

Loading