Gjorret ревизій цього gist 11 months ago. До ревизії
1 file changed, 33 insertions
talos.md
| @@ -41,3 +41,36 @@ talosctl config node $CONTROL_PLANE_IP | |||
| 41 | 41 | Jeg er i tvivl hvor vidt man så skal køre en "Bootstrap Etcd" efterfølgende, det står i "Using the Cluster | |
| 42 | 42 | ```sh | |
| 43 | 43 | talosctl bootstrap | |
| 44 | + | ||
| 45 | + | ||
| 46 | + | # Stuff | |
| 47 | + | ||
| 48 | + | # MetalLB: | |
| 49 | + | ```sh | |
| 50 | + | kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.13.10/config/manifests/metallb-native.yaml | |
| 51 | + | # check pods: | |
| 52 | + | kubectl get pods -n metallb-system | |
| 53 | + | ``` | |
| 54 | + | ||
| 55 | + | Lav en yaml fil med config til den, fx metallb-config.yaml | |
| 56 | + | ```yaml | |
| 57 | + | # metallb-config.yaml | |
| 58 | + | apiVersion: metallb.io/v1beta1 | |
| 59 | + | kind: IPAddressPool | |
| 60 | + | metadata: | |
| 61 | + | namespace: metallb-system | |
| 62 | + | name: my-pool | |
| 63 | + | spec: | |
| 64 | + | addresses: | |
| 65 | + | - 192.168.1.240-192.168.1.250 | |
| 66 | + | --- | |
| 67 | + | apiVersion: metallb.io/v1beta1 | |
| 68 | + | kind: L2Advertisement | |
| 69 | + | metadata: | |
| 70 | + | namespace: metallb-system | |
| 71 | + | name: l2 | |
| 72 | + | spec: {} | |
| 73 | + | ``` | |
| 74 | + | ```sh | |
| 75 | + | kubectl apply -f metallb-config.yaml | |
| 76 | + | ``` | |
Gjorret ревизій цього gist 11 months ago. До ревизії
1 file changed, 43 insertions
talos.md(файл створено)
| @@ -0,0 +1,43 @@ | |||
| 1 | + | # Installation | |
| 2 | + | Hope this works soooonn | |
| 3 | + | ||
| 4 | + | Install guide: https://www.talos.dev/v1.9/talos-guides/install/virtualized-platforms/proxmox/ | |
| 5 | + | ||
| 6 | + | ## Create VM | |
| 7 | + | Lav VM i GUI og herefter tilføj cpu args. | |
| 8 | + | Gør det både for en control plane og en worker | |
| 9 | + | ```sh | |
| 10 | + | export VM_ID=144 | |
| 11 | + | echo 'args: -cpu kvm64,+cx16,+lahf_lm,+popcnt,+sse3,+ssse3,+sse4.1,+sse4.2' >> /etc/pve/qemu-server/$VM_ID.conf | |
| 12 | + | qm start $VM_ID | |
| 13 | + | ``` | |
| 14 | + | ## Install Talos | |
| 15 | + | Lav config og apply det | |
| 16 | + | ### Control Plane | |
| 17 | + | ```sh | |
| 18 | + | export CONTROL_PLANE_IP=192.168.0.180 | |
| 19 | + | # Create | |
| 20 | + | talosctl gen config talos-proxmox-cluster https://$CONTROL_PLANE_IP:6443 --output-dir _out --install-image factory.talos.dev/installer/ce4c980550dd2ab1b17bbf2b08801c7eb59418eafe8f279833297925d67c7515:v1.9.5 | |
| 21 | + | # Apply | |
| 22 | + | talosctl apply-config --insecure --nodes $CONTROL_PLANE_IP --file _out/controlplane.yaml | |
| 23 | + | ``` | |
| 24 | + | ||
| 25 | + | ### Worker node | |
| 26 | + | ```sh | |
| 27 | + | export WORKER_IP=192.168.0.139 | |
| 28 | + | ||
| 29 | + | # Apply | |
| 30 | + | talosctl apply-config --insecure --nodes $WORKER_IP --file _out/worker.yaml | |
| 31 | + | ``` | |
| 32 | + | ||
| 33 | + | # Usage | |
| 34 | + | For at snakke med controlplane, add det sådan her: | |
| 35 | + | ```sh | |
| 36 | + | export TALOSCONFIG="_out/talosconfig" | |
| 37 | + | talosctl config endpoint $CONTROL_PLANE_IP | |
| 38 | + | talosctl config node $CONTROL_PLANE_IP | |
| 39 | + | ``` | |
| 40 | + | ||
| 41 | + | Jeg er i tvivl hvor vidt man så skal køre en "Bootstrap Etcd" efterfølgende, det står i "Using the Cluster | |
| 42 | + | ```sh | |
| 43 | + | talosctl bootstrap | |