Skip to content

Commit 82cefee

Browse files
committed
talos-init
1 parent 5f9e8f1 commit 82cefee

5 files changed

Lines changed: 112 additions & 19 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
set -ex
2+
3+
talosctl apply-config --file "./secrets/controlplane.yaml" --nodes 10.10.8.188 # a1
4+
talosctl apply-config --file "./secrets/controlplane.yaml" --nodes 10.10.12.69 # b1
5+
talosctl apply-config --file "./secrets/controlplane.yaml" --nodes 10.10.24.137 # c1
6+
talosctl apply-config --file "./secrets/worker.yaml" --nodes 10.10.18.43
7+
talosctl apply-config --file "./secrets/worker.yaml" --nodes 10.10.21.108
8+
talosctl apply-config --file "./secrets/worker.yaml" --nodes 10.10.18.43
9+
talosctl apply-config --file "./secrets/worker.yaml" --nodes 10.10.31.114 # a2
10+
talosctl apply-config --file "./secrets/worker.yaml" --nodes 10.10.16.105 # a5
11+
talosctl apply-config --file "./secrets/worker.yaml" --nodes 10.10.24.60 # c2
12+
talosctl apply-config --file "./secrets/worker.yaml" --nodes 10.10.4.141 # c3
13+
talosctl apply-config --file "./secrets/worker.yaml" --nodes 10.10.22.204 # c4
14+
talosctl apply-config --file "./secrets/worker.yaml" --nodes 10.10.15.10 # c5
15+
talosctl apply-config --file "./secrets/worker.yaml" --nodes 10.10.25.241 # b2
16+
talosctl apply-config --file "./secrets/worker.yaml" --nodes 10.10.8.199 # b3
17+
talosctl apply-config --file "./secrets/worker.yaml" --nodes 10.10.3.175 # b4
18+
talosctl apply-config --file "./secrets/worker.yaml" --nodes 10.10.27.240 # b5
19+
talosctl apply-config --file "./secrets/worker.yaml" --nodes 10.10.30.37 # b6
20+
talosctl apply-config --file "./secrets/worker.yaml" --nodes 10.10.9.213 # b7
21+
talosctl apply-config --file "./secrets/worker.yaml" --nodes 10.10.31.127 # b8

infra/talos/01b.us/init-cluster.sh

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,38 +15,60 @@ talosctl gen config --with-secrets ./secrets/secrets.yaml secrets https://10.10.
1515
export TALOSCONFIG=secrets/talosconfig
1616
talosctl apply-config --insecure --file "./secrets/controlplane.yaml" --nodes 10.10.8.188 # a1
1717
# talosctl apply-config --insecure --file "./secrets/controlplane.yaml" --nodes 10.10.4.92 # a2 # stopped
18-
talosctl apply-config --insecure --file "./secrets/controlplane.yaml" --nodes 10.10.15.105 # b1
18+
# talosctl apply-config --insecure --file "./secrets/controlplane.yaml" --nodes 10.10.15.105 # b1 # stopped
19+
talosctl apply-config --insecure --file "./secrets/controlplane.yaml" --nodes 10.10.12.69 # b1
1920
talosctl apply-config --insecure --file "./secrets/controlplane.yaml" --nodes 10.10.24.137 # c1
2021
talosctl bootstrap --endpoints 10.10.8.188 --nodes 10.10.8.188
2122
# talosctl -n 10.10.24.137 service etcd # c1
22-
# talosctl -n 10.10.8.188 etcd member list
23+
# talosctl -n 10.10.8.188 etcd members list
24+
# must remove one to add another
2325
# talosctl etcd remove-member d0ad514b939e5565
26+
# talosctl etcd remove-member fee03360fedfd7c6 # removed b1 10.10.15.105
2427

2528
# is this right?
26-
talosctl config endpoint 10.10.0.42 10.10.8.188 10.10.15.105 10.10.24.137
29+
talosctl config endpoint 10.10.0.42 10.10.8.188 10.10.12.69 10.10.24.137
2730

28-
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.18.178
31+
# talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.18.178
32+
# talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.14.112
33+
# talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.24.164
34+
# talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.8.0
35+
# talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.20.128
36+
# talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.24.136 # b7
2937

3038
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.18.43
3139
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.21.108
32-
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.14.112
33-
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.24.164
34-
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.8.0
35-
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.20.128
3640
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.18.43
3741
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.31.114 # a2
3842
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.16.105 # a5
39-
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.24.136 # b7
4043
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.24.60 # c2
4144
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.4.141 # c3
4245
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.22.204 # c4
4346
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.15.10 # c5
4447

48+
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.25.241 # b2
49+
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.8.199 # b3
50+
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.3.175 # b4
51+
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.27.240 # b5
52+
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.30.37 # b6
53+
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.9.213 # b7
54+
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.31.127 # b8
55+
4556
# is this right?
46-
talosctl config node 10.10.0.42 10.10.8.188 10.10.15.105 10.10.4.92 10.10.18.178 10.10.18.43 10.10.21.108 10.10.14.112 10.10.24.164 10.10.8.0 10.10.20.128 10.10.18.43 10.10.31.114 10.10.16.105 10.10.24.136 10.10.24.60 10.10.4.141 10.10.22.204 10.10.15.10
57+
58+
talosctl config node 10.10.0.42 10.10.8.188 10.10.12.69 10.10.24.137 10.10.18.43 10.10.21.108 10.10.18.43 10.10.31.114 10.10.16.105 10.10.24.60 10.10.4.141 10.10.22.204 10.10.15.10 10.10.25.241 10.10.8.199 10.10.3.175 10.10.27.240 10.10.30.37 10.10.9.213 10.10.31.127
59+
60+
#
61+
# old b?
62+
# 10.10.18.178 \
63+
# 10.10.14.112 \
64+
# 10.10.24.164 \
65+
# 10.10.8.0 \
66+
# 10.10.20.128 \
67+
# 10.10.24.136 \
68+
4769
# talosctl config node 10.10.0.42
4870

49-
# talosctl get members.8.188 10.10.15.105 10.10.4.
71+
# talosctl get members.8.188 10.10.12.69 10.10.4.
5072
# talosctl get nodestatus
5173
talosctl get volumestatus
5274
s
@@ -69,7 +91,7 @@ talosctl get nodetaintspec
6991
# talosctl get identity
7092
talosctl get hostname
7193

72-
talosctl etcd status -n 10.10.8.188,10.10.15.105,10.10.4.92 # workers expected to fail
94+
talosctl etcd status -n 10.10.8.188,10.10.12.69,10.10.24.137
7395

7496
talosctl kubeconfig ./secrets/kubeconfig -n 10.10.0.42
7597
# talosctl kubeconfig -n 10.10.0.42

infra/talos/01b.us/kubernetes/infrastructure/networking/metallb/config.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,21 @@ metadata:
55
namespace: metallb-system
66
spec:
77
addresses:
8-
# reserved for static ip
8+
# reserved for gateway static ip (main edge router from: 10.10.0.0/16)
99
# - 10.10.0.0 - 10.10.1.255
1010

11-
# reserved for gateway dhcp (main edge router)
11+
# reserved for gateway dhcp (main edge router from: 10.10.0.0/16)
1212
# - 10.10.2.0 - 10.10.31.255
1313

14-
# reserved for 01b.us cluster load balancers
14+
# reserved for 01b.us cluster load balancers (no subnet? essentially a separate dhcp under main edge router from 10.10.0.0/16)
1515
- 10.10.32.0-10.10.63.254
1616

17+
# reserved for kubernetes: 10.96.0.0/12
18+
# - 10.96.0.0 - 10.111.255.255
19+
20+
# reserved for kubernetes: 10.244.0.0/16
21+
# - 10.244.0.0 - 10.244.255.255
22+
1723
---
1824
apiVersion: metallb.io/v1beta1
1925
kind: L2Advertisement
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
export TALOSCONFIG=secrets/talosconfig
2+
3+
talosctl apply-config --insecure --file "./secrets/controlplane.yaml" --nodes 10.10.12.69 # b1
4+
5+
talosctl config endpoint 10.10.0.42 10.10.8.188 10.10.12.69 10.10.24.137
6+
7+
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.25.241 # b2
8+
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.8.199 # b3
9+
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.3.175 # b4
10+
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.27.240 # b5
11+
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.30.37 # b6
12+
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.9.213 # b7
13+
talosctl apply-config --insecure --file "./secrets/worker.yaml" --nodes 10.10.31.127 # b8
14+
15+
talosctl config node \
16+
10.10.0.42 \
17+
10.10.8.188 \
18+
10.10.12.69 \
19+
10.10.18.178 \
20+
10.10.18.43 \
21+
10.10.21.108 \
22+
10.10.14.112 \
23+
10.10.24.164 \
24+
10.10.8.0 \
25+
10.10.20.128 \
26+
10.10.18.43 \
27+
10.10.31.114 \
28+
10.10.16.105 \
29+
10.10.24.136 \
30+
10.10.24.60 \
31+
10.10.4.141 \
32+
10.10.22.204 \
33+
10.10.15.10 \
34+
\
35+
10.10.25.241 \
36+
10.10.8.199 \
37+
10.10.3.175 \
38+
10.10.27.240 \
39+
10.10.30.37 \
40+
10.10.9.213 \
41+
10.10.31.127 \
42+
#
43+
44+
talosctl etcd status -n 10.10.8.188,10.10.12.69,10.10.24.137

infra/talos/01b.us/secrets.enc

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)