2024-05-06 08:53:47 -05:00
|
|
|
---
|
2024-09-04 13:35:14 -05:00
|
|
|
# yaml-language-server: $schema=https://ks.hsn.dev/talconfig.json
|
|
|
|
clusterName: theshire
|
2024-05-06 08:53:47 -05:00
|
|
|
|
2024-09-04 13:35:14 -05:00
|
|
|
talosVersion: v1.7.6
|
2024-07-04 11:33:24 -05:00
|
|
|
kubernetesVersion: 1.30.2
|
2024-09-04 13:35:14 -05:00
|
|
|
endpoint: "https://10.1.1.57:6444"
|
2024-05-06 08:53:47 -05:00
|
|
|
|
2024-09-04 13:35:14 -05:00
|
|
|
additionalApiServerCertSans:
|
|
|
|
- 10.1.1.57
|
2024-05-06 08:53:47 -05:00
|
|
|
|
2024-09-04 13:35:14 -05:00
|
|
|
additionalMachineCertSans:
|
|
|
|
- 10.1.1.57
|
2024-05-06 08:53:47 -05:00
|
|
|
|
|
|
|
nodes:
|
2024-09-04 13:35:14 -05:00
|
|
|
- hostname: bilbo
|
2024-05-06 08:53:47 -05:00
|
|
|
disableSearchDomain: true
|
2024-09-04 13:35:14 -05:00
|
|
|
ipAddress: 10.1.1.62
|
2024-05-06 08:53:47 -05:00
|
|
|
controlPlane: true
|
|
|
|
installDiskSelector:
|
2024-09-04 13:35:14 -05:00
|
|
|
busPath: /pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/
|
2024-05-06 08:53:47 -05:00
|
|
|
networkInterfaces:
|
2024-09-04 13:35:14 -05:00
|
|
|
- interface: eno1
|
|
|
|
dhcp: true
|
|
|
|
patches:
|
|
|
|
- |-
|
|
|
|
machine:
|
|
|
|
sysctls:
|
|
|
|
vm.nr_hugepages: "1024"
|
2024-05-07 19:05:31 -05:00
|
|
|
|
2024-09-04 13:35:14 -05:00
|
|
|
- hostname: frodo
|
|
|
|
disableSearchDomain: true
|
|
|
|
ipAddress: 10.1.1.63
|
|
|
|
controlPlane: true
|
|
|
|
installDiskSelector:
|
|
|
|
busPath: /pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/
|
|
|
|
networkInterfaces:
|
|
|
|
- interface: eno1
|
|
|
|
dhcp: true
|
2024-05-06 08:53:47 -05:00
|
|
|
patches:
|
|
|
|
- |-
|
|
|
|
machine:
|
|
|
|
sysctls:
|
2024-07-11 16:09:49 -05:00
|
|
|
vm.nr_hugepages: "1024"
|
2024-09-04 13:35:14 -05:00
|
|
|
|
|
|
|
- hostname: sam
|
|
|
|
disableSearchDomain: true
|
|
|
|
ipAddress: 10.1.1.64
|
|
|
|
controlPlane: true
|
|
|
|
installDiskSelector:
|
|
|
|
busPath: /pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/
|
|
|
|
networkInterfaces:
|
|
|
|
- interface: eno1
|
|
|
|
dhcp: true
|
|
|
|
patches:
|
|
|
|
- |-
|
2024-07-11 16:09:49 -05:00
|
|
|
machine:
|
2024-09-04 13:35:14 -05:00
|
|
|
sysctls:
|
|
|
|
vm.nr_hugepages: "1024"
|
|
|
|
|
|
|
|
- hostname: pippin
|
|
|
|
disableSearchDomain: true
|
|
|
|
ipAddress: 10.1.1.65
|
|
|
|
controlPlane: false
|
|
|
|
installDiskSelector:
|
|
|
|
busPath: /pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/
|
|
|
|
networkInterfaces:
|
|
|
|
- interface: eno1
|
|
|
|
dhcp: true
|
|
|
|
patches:
|
2024-08-08 12:50:06 -05:00
|
|
|
- |-
|
|
|
|
machine:
|
2024-09-04 13:35:14 -05:00
|
|
|
sysctls:
|
|
|
|
vm.nr_hugepages: "1024"
|
2024-09-05 01:03:54 -05:00
|
|
|
- &kubelet_extra_mounts |-
|
|
|
|
machine:
|
|
|
|
kubelet:
|
|
|
|
extraMounts:
|
|
|
|
- destination: /var/openebs/local
|
|
|
|
type: bind
|
|
|
|
source: /var/openebs/local
|
|
|
|
options:
|
|
|
|
- bind
|
|
|
|
- rshared
|
|
|
|
- rw
|
2024-08-08 12:50:06 -05:00
|
|
|
|
2024-09-04 13:35:14 -05:00
|
|
|
- hostname: merry
|
|
|
|
disableSearchDomain: true
|
|
|
|
ipAddress: 10.1.1.66
|
|
|
|
controlPlane: false
|
|
|
|
installDiskSelector:
|
|
|
|
busPath: /pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/
|
|
|
|
networkInterfaces:
|
|
|
|
- interface: eno1
|
|
|
|
dhcp: true
|
|
|
|
patches:
|
|
|
|
- |-
|
|
|
|
machine:
|
|
|
|
sysctls:
|
|
|
|
vm.nr_hugepages: "1024"
|
2024-09-05 01:03:54 -05:00
|
|
|
- *kubelet_extra_mounts
|
2024-09-04 13:35:14 -05:00
|
|
|
|
|
|
|
- hostname: rosie
|
|
|
|
disableSearchDomain: true
|
|
|
|
ipAddress: 10.1.1.67
|
|
|
|
controlPlane: false
|
|
|
|
installDiskSelector:
|
|
|
|
busPath: /pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/
|
|
|
|
networkInterfaces:
|
|
|
|
- interface: eno1
|
|
|
|
dhcp: true
|
|
|
|
patches:
|
|
|
|
- |-
|
|
|
|
machine:
|
|
|
|
sysctls:
|
|
|
|
vm.nr_hugepages: "1024"
|
2024-09-05 01:03:54 -05:00
|
|
|
- *kubelet_extra_mounts
|
2024-09-04 13:35:14 -05:00
|
|
|
- hostname: gandalf-01
|
|
|
|
disableSearchDomain: true
|
|
|
|
ipAddress: 10.1.1.68
|
|
|
|
controlPlane: false
|
|
|
|
installDiskSelector:
|
|
|
|
busPath: /pci0000:00/0000:00:01.1/0000:02:00.0/virtio6/host6/target6:0:0/6:0:0:1/
|
|
|
|
networkInterfaces:
|
|
|
|
- interface: enp5s0
|
|
|
|
dhcp: true
|
|
|
|
patches:
|
|
|
|
- |-
|
|
|
|
machine:
|
|
|
|
sysctls:
|
|
|
|
vm.nr_hugepages: "1024"
|
2024-09-05 01:03:54 -05:00
|
|
|
- *kubelet_extra_mounts
|
|
|
|
|
2024-09-05 00:36:11 -05:00
|
|
|
- hostname: shadowfax-01
|
|
|
|
disableSearchDomain: true
|
|
|
|
ipAddress: 10.1.1.69
|
|
|
|
controlPlane: false
|
|
|
|
installDiskSelector:
|
|
|
|
busPath: /pci0000:00/0000:00:01.1/0000:02:00.0/virtio6/host0/target0:0:0/0:0:0:1/
|
|
|
|
networkInterfaces:
|
|
|
|
- interface: enp5s0
|
|
|
|
dhcp: true
|
|
|
|
patches:
|
|
|
|
- |-
|
|
|
|
machine:
|
|
|
|
sysctls:
|
|
|
|
net.core.bpf_jit_harden: 1
|
|
|
|
vm.nr_hugepages: "1024"
|
|
|
|
- *kubelet_extra_mounts
|
|
|
|
|
|
|
|
kernelModules:
|
|
|
|
- name: nvidia
|
|
|
|
- name: nvidia_uvm
|
|
|
|
- name: nvidia_drm
|
|
|
|
- name: nvidia_modeset
|
|
|
|
schematic:
|
|
|
|
customization:
|
|
|
|
systemExtensions:
|
|
|
|
officialExtensions:
|
|
|
|
- siderolabs/amd-ucode
|
|
|
|
- siderolabs/nonfree-kmod-nvidia
|
|
|
|
- siderolabs/nvidia-container-toolkit
|
|
|
|
|
2024-09-04 13:35:14 -05:00
|
|
|
worker:
|
|
|
|
schematic:
|
|
|
|
customization:
|
|
|
|
extraKernelArgs:
|
|
|
|
- net.ifnames=1
|
|
|
|
systemExtensions:
|
|
|
|
officialExtensions:
|
|
|
|
- siderolabs/intel-ucode
|
|
|
|
- siderolabs/i915-ucode
|
2024-05-06 08:53:47 -05:00
|
|
|
controlPlane:
|
2024-09-04 13:35:14 -05:00
|
|
|
schematic:
|
|
|
|
customization:
|
|
|
|
extraKernelArgs:
|
|
|
|
- net.ifnames=1
|
|
|
|
systemExtensions:
|
|
|
|
officialExtensions:
|
|
|
|
- siderolabs/intel-ucode
|
|
|
|
- siderolabs/i915-ucode
|
2024-05-06 08:53:47 -05:00
|
|
|
patches:
|
2024-09-05 00:36:11 -05:00
|
|
|
# Disable search domain everywhere
|
2024-05-06 08:53:47 -05:00
|
|
|
- |-
|
|
|
|
machine:
|
|
|
|
network:
|
|
|
|
disableSearchDomain: true
|
|
|
|
|
|
|
|
# Force nameserver
|
|
|
|
- |-
|
|
|
|
machine:
|
|
|
|
network:
|
|
|
|
nameservers:
|
2024-05-06 14:01:09 -05:00
|
|
|
- 10.1.1.1
|
2024-05-06 08:53:47 -05:00
|
|
|
|
|
|
|
# Configure NTP
|
|
|
|
- |-
|
|
|
|
machine:
|
|
|
|
time:
|
|
|
|
disabled: false
|
|
|
|
servers:
|
2024-09-01 21:16:41 -05:00
|
|
|
- time.cloudflare.com
|
2024-05-06 08:53:47 -05:00
|
|
|
|
|
|
|
# Enable KubePrism
|
|
|
|
- |-
|
|
|
|
machine:
|
|
|
|
features:
|
|
|
|
kubePrism:
|
|
|
|
enabled: true
|
|
|
|
port: 7445
|
|
|
|
|
2024-09-04 13:35:14 -05:00
|
|
|
# hostDNS configuration
|
|
|
|
- |-
|
|
|
|
machine:
|
|
|
|
features:
|
|
|
|
hostDNS:
|
|
|
|
enabled: true
|
|
|
|
resolveMemberNames: true
|
|
|
|
forwardKubeDNSToHost: false
|
|
|
|
|
|
|
|
# coreDNS configuration
|
|
|
|
- |-
|
|
|
|
cluster:
|
|
|
|
coreDNS:
|
|
|
|
disabled: true
|
|
|
|
|
2024-05-06 08:53:47 -05:00
|
|
|
# Cluster configuration
|
|
|
|
- |-
|
|
|
|
cluster:
|
|
|
|
allowSchedulingOnMasters: true
|
|
|
|
proxy:
|
|
|
|
disabled: true
|
2024-05-06 14:01:09 -05:00
|
|
|
network:
|
|
|
|
cni:
|
|
|
|
name: none
|
2024-05-14 08:56:38 -05:00
|
|
|
controllerManager:
|
|
|
|
extraArgs:
|
|
|
|
bind-address: 0.0.0.0
|
|
|
|
etcd:
|
|
|
|
extraArgs:
|
|
|
|
listen-metrics-urls: http://0.0.0.0:2381
|
|
|
|
scheduler:
|
|
|
|
extraArgs:
|
|
|
|
bind-address: 0.0.0.0
|
2024-05-06 08:53:47 -05:00
|
|
|
|
|
|
|
# ETCD configuration
|
|
|
|
- |-
|
|
|
|
cluster:
|
|
|
|
etcd:
|
|
|
|
advertisedSubnets:
|
|
|
|
- 10.1.1.0/24
|
|
|
|
|
2024-09-04 13:35:14 -05:00
|
|
|
# Configure containerd
|
|
|
|
- |-
|
|
|
|
machine:
|
|
|
|
files:
|
|
|
|
- op: create
|
|
|
|
path: /etc/cri/conf.d/20-customization.part
|
|
|
|
content: |
|
|
|
|
[plugins]
|
|
|
|
[plugins."io.containerd.grpc.v1.cri"]
|
|
|
|
enable_unprivileged_ports = true
|
|
|
|
enable_unprivileged_icmp = true
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".containerd]
|
|
|
|
discard_unpacked_layers = false
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
|
|
|
|
discard_unpacked_layers = false
|
|
|
|
|
2024-05-06 08:53:47 -05:00
|
|
|
# Disable default API server admission plugins.
|
|
|
|
- |-
|
|
|
|
- op: remove
|
|
|
|
path: /cluster/apiServer/admissionControl
|
|
|
|
|
|
|
|
# Enable K8s Talos API Access
|
|
|
|
- |-
|
|
|
|
machine:
|
|
|
|
features:
|
|
|
|
kubernetesTalosAPIAccess:
|
|
|
|
enabled: true
|
|
|
|
allowedRoles:
|
|
|
|
- os:admin
|
|
|
|
allowedKubernetesNamespaces:
|
|
|
|
- system-upgrade
|
|
|
|
|
|
|
|
# Kubelet configuration
|
|
|
|
- |-
|
|
|
|
machine:
|
|
|
|
kubelet:
|
|
|
|
defaultRuntimeSeccompProfileEnabled: true
|
|
|
|
extraArgs:
|
|
|
|
rotate-server-certificates: "true"
|
|
|
|
extraConfig:
|
|
|
|
maxPods: 150
|
|
|
|
nodeIP:
|
|
|
|
validSubnets:
|
|
|
|
- 10.1.1.0/24
|
|
|
|
|
|
|
|
# Custom sysctls
|
|
|
|
- |-
|
|
|
|
machine:
|
|
|
|
sysctls:
|
|
|
|
fs.inotify.max_queued_events: "65536"
|
|
|
|
fs.inotify.max_user_instances: "8192"
|
|
|
|
fs.inotify.max_user_watches: "524288"
|
|
|
|
net.core.rmem_max: "2500000"
|
|
|
|
net.core.wmem_max: "2500000"
|
2024-07-03 11:22:17 -05:00
|
|
|
|
|
|
|
# Configure nfs mount options
|
2024-09-04 13:35:14 -05:00
|
|
|
- |-
|
2024-07-03 11:22:17 -05:00
|
|
|
machine:
|
|
|
|
files:
|
|
|
|
- op: overwrite
|
|
|
|
path: /etc/nfsmount.conf
|
|
|
|
permissions: 0o644
|
|
|
|
content: |
|
|
|
|
[ NFSMount_Global_Options ]
|
2024-07-04 14:34:08 -05:00
|
|
|
nfsvers=4.1
|
2024-07-03 11:22:17 -05:00
|
|
|
hard=True
|
|
|
|
noatime=True
|
|
|
|
nodiratime=True
|
|
|
|
rsize=131072
|
|
|
|
wsize=131072
|
|
|
|
nconnect=8
|