feat: Bootstrap Talos k8s cluster

This commit is contained in:
Peter 2025-10-28 22:46:17 +01:00
parent 9ca0f7c431
commit 7d3c60325f
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg
7 changed files with 336 additions and 0 deletions

View file

@ -0,0 +1,43 @@
debug: false
machine:
type: ${machine_type}
install:
disk: /dev/vda
image: factory.talos.dev/nocloud-installer-secureboot/ce4c980550dd2ab1b17bbf2b08801c7eb59418eafe8f279833297925d67c7515:v${talos_version}
network:
hostname: ${hostname}
nameservers:
- 10.13.37.2
%{ if machine_type == "controlplane" }
interfaces:
- interface: eth0
dhcp: false
vip:
ip: ${vip_address}
%{ endif }
kubelet:
extraArgs:
pod-max-pids: 1000
extraConfig:
imageGCHighThresholdPercent: 75
imageGCLowThresholdPercent: 70
nodeLabels:
topology.kubernetes.io/region: ${cluster_name}
topology.kubernetes.io/zone: ${node_name}
cluster:
apiServer:
auditPolicy:
apiVersion: audit.k8s.io/v1
kind: Policy
rules:
- level: Metadata
network:
cni:
name: none
proxy:
disabled: true
inlineManifests:
- name: cilium-bootstrap
contents: |
${indent(6, cilium_install_file)}