Files
charts/clustertool/embed/generic/patches/all.yaml
jogotcha 10d5877232 chore(clustertool) change included patch format and add nvidia patch (#31813)
**Description**
Change clustertool included patches from RFC6902 (json patches) to
strategic merge patches, see
[talos-guides](https://www.talos.dev/v1.9/talos-guides/configuration/patching/).
This allows for the used to easily add to some of the "list" values like
sysctls and kernel modules.

For example, this list operation overwrites any previous adds to
sysctls.
```yaml
- op: add
  path: /machine/sysctls
  value:
    fs.inotify.max_queued_events: "65536"
    fs.inotify.max_user_instances: "8192"
```

this is not the case when using strategic merge patches
```yaml
machine:
  sysctls:
    fs.inotify.max_queued_events: "65536"
    fs.inotify.max_user_instances: "8192"
```

for example nvidia.yaml can add to this
```yaml
machine:
  sysctls:
    net.core.bpf_jit_harden: 1
```
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [x] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [x] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
I ran clustertool genconfig with the default configs before and after
the change. The resulting main-k8s-control-1.yaml was identical (except,
see below).

**📃 Notes:**

The bind addresses for proxy and scheduler did never end up in the
generated config because they got overwritten by subsequent patch
operations. Now these entries will be in the generated config, not sure
if that could be an issue?

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [x] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning
- [x] I made sure the title starts with `feat(chart-name):`,
`fix(chart-name):` or `chore(chart-name):`

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
2025-02-09 11:25:51 +01:00

93 lines
2.4 KiB
YAML

cluster:
proxy:
disabled: true
machine:
time:
disabled: false
servers:
- time.cloudflare.com
kubelet:
extraArgs:
rotate-server-certificates: "true"
extraConfig:
maxPods: 250
shutdownGracePeriod: 15s
shutdownGracePeriodCriticalPods: 10s
extraMounts:
- destination: /var/openebs/local
type: bind
source: /var/openebs/local
options:
- bind
- rshared
- rw
- destination: /var/lib/longhorn
type: bind
source: /var/lib/longhorn
options:
- bind
- rshared
- rw
features:
hostDNS:
enabled: true
forwardKubeDNSToHost: true
resolveMemberNames: true
sysctls:
fs.inotify.max_queued_events: "65536"
fs.inotify.max_user_instances: "8192"
fs.inotify.max_user_watches: "524288"
net.core.rmem_max: 7500000
net.core.wmem_max: 7500000
user.max_user_namespaces: "11255" # For flatpak support
net.core.default_qdisc: fq # 10Gb/s
net.ipv4.tcp_congestion_control: bbr # 10Gb/s
net.ipv4.tcp_fastopen: 3 # Send and accept data in the opening SYN packet
net.ipv4.tcp_mtu_probing: 1 # 10Gb/s | Jumbo frames
net.ipv4.tcp_rmem: 4096 87380 33554432 # 10Gb/s
net.ipv4.tcp_wmem: 4096 65536 33554432 # 10Gb/s
net.ipv4.tcp_window_scaling: 1 # 10Gb/s
vm.nr_hugepages: 1024 # PostgreSQL
registries:
mirrors:
cgr.dev:
endpoints:
- https://cgr.dev
docker.io:
endpoints:
- https://mirror.gcr.io
- https://registry-1.docker.io
- https://docker.io
factory.talos.dev:
endpoints:
- https://factory.talos.dev
gcr.io:
endpoints:
- https://gcr.io
ghcr.io:
endpoints:
- https://ghcr.io
k8s.gcr.io:
endpoints:
- https://k8s.gcr.io
mcr.microsoft.com:
endpoints:
- https://mcr.microsoft.com
public.ecr.aws:
endpoints:
- https://public.ecr.aws
quay.io:
endpoints:
- https://quay.io
registry-1.docker.io:
endpoints:
- https://mirror.gcr.io
- https://registry-1.docker.io
registry.k8s.io:
endpoints:
- https://registry.k8s.io
tccr.io:
endpoints:
- https://quay.io
- https://tccr.io