-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
talconfig.yaml
179 lines (179 loc) · 4.66 KB
/
talconfig.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
---
clusterName: home-cluster
talosVersion: v1.7.1
kubernetesVersion: v1.27.0
endpoint: https://192.168.200.10:6443
domain: ${myDomainName}
allowSchedulingOnMasters: true
additionalMachineCertSans:
- 192.168.200.10
additionalApiServerCertSans:
- home-cluster.local
clusterPodNets:
- 10.244.0.0/16
clusterSvcNets:
- 10.96.0.0/12
cniConfig:
name: custom
urls:
- https://raw.githubusercontent.com/bjw-s/home-ops/main/infrastructure/talos/cluster-0/cni/install.yaml
patches:
- |-
- op: add
path: /machine/env
value:
GRPC_GO_LOG_SEVERITY_LEVEL: error
nodes:
- hostname: kmaster1
extensionServices:
- name: nut-client
configFiles:
- content: MONITOR upsmonHost 1 remote pass password
mountPath: /usr/local/etc/nut/upsmon.conf
environment:
- UPS_NAME=ups
ingressFirewall:
defaultAction: block
rules:
- name: kubelet-ingress
portSelector:
ports:
- 10250
protocol: tcp
ingress:
- subnet: 172.20.0.0/24
except: 172.20.0.1/32
ipAddress: 192.168.200.11
controlPlane: true
machineSpec:
mode: metal
arch: amd64
useUKI: true
secureboot: true
schematic:
overlay:
name: rock64
image: siderolabs/sbc-rockchip
customization:
extraKernelArgs:
- net.ifnames=0
systemExtensions:
officialExtensions:
- siderolabs/intel-ucode
- siderolabs/tailscale
machineFiles:
- content: |
TS_AUTHKEY=123456
permissions: 0o644
path: /var/etc/tailscale/auth.env
op: create
- content: "@./tsauth.env"
permissions: 0o644
path: /var/etc/tailscale2/auth.env
op: create
installDiskSelector:
size: 4GB
model: WDC*
name: /sys/block/sda/device/name
busPath: /pci0000:00/0000:00:17.0/ata1/host0/target0:0:0/0:0:0:0
nodeLabels:
rack: rack1a
zone: us-east-1a
isSecureBootEnabled: >-
{{
.MachineConfig.MachineInstall.InstallImage |
contains "installer-secureboot"
}}
nodeAnnotations:
rack: rack1a
installerUrl: '{{ .MachineConfig.MachineInstall.InstallImage }}'
nodeTaints:
mytaint: mytaints:NoSchedule
disableSearchDomain: true
kernelModules:
- name: br_netfilter
parameters:
- nf_conntrack_max=131072
machineDisks:
- device: /dev/disk/by-id/ata-CT500MX500SSD1_2149E5EC1D9D
partitions:
- mountpoint: /var/mnt/sata
nameservers:
- 1.1.1.1
- 8.8.8.8
networkInterfaces:
- interface: eth0
bond:
deviceSelectors:
- hardwareAddr: "00:50:56:*"
addresses:
- 192.168.200.11/24
mtu: 1500
routes:
- network: 0.0.0.0/0
gateway: 192.168.200.1
wireguard:
privateKey: 6NtibgkNWGSLp7ud6NgZr9k3kNhlQiaJCVW6vN+j9UY=
listenPort: 51111
peers:
- publicKey: kyiu4YOZqX+7tY4fdiIRNDe2lSEvlun76EWtD/jP1hU=
endpoint: 192.168.1.3:1111
allowedIPs:
- 192.168.1.0/24
persistentKeepaliveInterval: 10s
- deviceSelector:
hardwareAddr: 00:30:93:12:31:78
driver: atlantic
addresses:
- 10.0.0.10/24
mtu: 9000
routes:
- network: 0.0.0.0/0
gateway: 10.0.0.1
- hostname: kworker1
ipAddress: 192.168.200.13
controlPlane: false
installDisk: /dev/sdb
patches:
- |-
machine:
network:
interfaces:
- addresses:
- 192.168.200.13/24
interface: eth1
routes:
- gateway: 192.168.200.1
- network: 0.0.0.0/0
controlPlane:
patches:
- |-
- op: add
path: /machine/kubelet/extraArgs
value:
feature-gates: GracefulNodeShutdown=true,MixedProtocolLBService=true
rotate-server-certificates: "true"
- "@./extraKernelArgs-patch.yaml"
worker:
ingressFirewall:
defaultAction: block
rules:
- name: apid-ingress
portSelector:
ports:
- 50000
protocol: tcp
ingress:
- subnet: 10.96.0.0/12
patches:
- |-
- op: add
path: /machine/kubelet/extraArgs
value:
feature-gates: GracefulNodeShutdown=false,MixedProtocolLBService=false
rotate-server-certificates: "true"
schematic:
customization:
systemExtensions:
officialExtensions:
- siderolabs/intel-ucode