setup: Add virt-install commands
These are the `virt-install` commands I used to create the Control Plane and Worker nodes in the Kubernetes cluster.dch-webhooks-secrets
parent
66b3c83c6c
commit
5c19643182
|
@ -12,6 +12,52 @@ worker nodes, use [`fedora-k8s-node.ks`][1].
|
|||
[0]: fedora-k8s-ctrl.ks
|
||||
[0]: fedora-k8s-node.ks
|
||||
|
||||
Use `virt-manager` to create the virtual machines.
|
||||
|
||||
### Control Plane
|
||||
|
||||
```sh
|
||||
name=k8s-ctrl0; virt-install \
|
||||
--name ${name} \
|
||||
--memory 4096 \
|
||||
--vcpus 2 \
|
||||
--cpu host \
|
||||
--location http://dl.fedoraproject.org/pub/fedora/linux/releases/35/Everything/x86_64/os \
|
||||
--extra-args "ip=::::${name}::dhcp inst.ks=http://rosalina.pyrocufflink.blue/~dustin/kickstart/fedora-k8s-ctrl.ks" \
|
||||
--os-variant fedora34 \
|
||||
--disk pool=default,size=16,cache=none \
|
||||
--network network=kube,model=virtio,mac=52:54:00:be:29:76 \
|
||||
--sound none \
|
||||
--redirdev none \
|
||||
--rng /dev/urandom \
|
||||
--noautoconsole \
|
||||
--wait -1
|
||||
```
|
||||
|
||||
|
||||
### Worker
|
||||
|
||||
Be sure to set the correct MAC address for each node!
|
||||
|
||||
```sh
|
||||
name=k8s-amd64-n0; virt-install \
|
||||
--name ${name} \
|
||||
--memory 4096
|
||||
--vcpus 2 \
|
||||
--cpu host \
|
||||
--location http://dl.fedoraproject.org/pub/fedora/linux/releases/35/Everything/x86_64/os \
|
||||
--extra-args "ip=::::${name}::dhcp inst.ks=http://rosalina.pyrocufflink.blue/~dustin/kickstart/fedora-k8s-node.ks" \
|
||||
--os-variant fedora34 \
|
||||
--disk pool=default,size=64,cache=none \
|
||||
--disk pool=default,size=256,cache=none \
|
||||
--network network=kube,model=virtio,mac=52:54:00:67:ce:35 \
|
||||
--sound none \
|
||||
--redirdev none \
|
||||
--rng /dev/urandom \
|
||||
--noautoconsole \
|
||||
--wait -1
|
||||
```
|
||||
|
||||
|
||||
## Machine Setup
|
||||
|
||||
|
|
Loading…
Reference in New Issue