chore(clustertool): delete topolvm

This commit is contained in:
Kjeld Schouten
2024-10-23 23:50:34 +02:00
parent 4ddccce0ea
commit 1b36126d5f
4 changed files with 76 additions and 128 deletions
+76 -57
View File
@@ -1,63 +1,80 @@
cluster:
proxy:
disabled: true
machine:
time:
disabled: false
servers:
- op: replace
path: /machine/time
value:
"disabled": false
"servers":
- "time.cloudflare.com"
kernel:
- op: add
path: /machine/kernel
value:
modules:
- name: "dm_thin_pool"
- name: "dm_mod"
- name: "nvme_tcp"
- name: "vfio_pci"
- name: "uio_pci_generic"
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
resolveMemberNames: true
forwardKubeDNSToHost: false
sysctls:
- "name": "dm_thin_pool"
- "name": "dm_mod"
- "name": nvme_tcp
- "name": vfio_pci
- "name": uio_pci_generic
- op: replace
path: /cluster/proxy
value:
"disabled": true
- op: add
path: /machine/kubelet/extraArgs
value:
"rotate-server-certificates": true
- op: add
path: /machine/kubelet/extraConfig
value:
"maxPods": 250
"shutdownGracePeriod": "15s"
"shutdownGracePeriodCriticalPods": "10s"
- op: add
path: /machine/kubelet/extraMounts
value:
- "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
- op: replace
path: /machine/features/hostDNS
value:
enabled: true
resolveMemberNames: true
forwardKubeDNSToHost: false
- op: add
path: /machine/sysctls
value:
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"
vm.nr_hugepages: "2048"
files:
- path: "/etc/cri/conf.d/20-customization.part"
permissions: 0
op: "create"
content: |
## TODO: Check how we can have this pass checks
# - op: add
# path: /machine/udev
# value:
# # Thunderbolt
# - ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}=="0", ATTR{authorized}="1"
# # Intel GPU
# - SUBSYSTEM=="drm", KERNEL=="renderD*", GROUP="44", MODE="0660"
# # Google Coral USB Accelerator
# - SUBSYSTEMS=="usb", ATTRS{idVendor}=="1a6e", ATTRS{idProduct}=="089a", GROUP="20", MODE="0660"
# - SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9302", GROUP="20", MODE="0660"
- op: add
path: /machine/files
value:
- content: |-
[plugins."io.containerd.grpc.v1.cri"]
enable_unprivileged_ports = true
enable_unprivileged_icmp = true
@@ -65,11 +82,10 @@ machine:
discard_unpacked_layers = false
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
discard_unpacked_layers = false
- path: "/etc/nfsmount.conf"
permissions: 420
op: "overwrite"
content: |
permissions: 0
path: /etc/cri/conf.d/20-customization.part
op: create
- content: |-
[ NFSMount_Global_Options ]
nfsvers=4.2
hard=True
@@ -78,3 +94,6 @@ machine:
rsize=131072
wsize=131072
nconnect=8
permissions: 420
path: /etc/nfsmount.conf
op: overwrite