add kubelet mounts
for openebs local -- this provides low latency PV storage for databases and the like.
This commit is contained in:
parent
ad7fc04320
commit
fb9ca1f9b0
3 changed files with 45 additions and 1 deletions
2
.envrc
2
.envrc
|
@ -3,5 +3,7 @@ export KUBECONFIG="$(expand_path ./kubeconfig)"
|
||||||
export SOPS_AGE_KEY_FILE="$(expand_path ./age.key)"
|
export SOPS_AGE_KEY_FILE="$(expand_path ./age.key)"
|
||||||
export TALOSCONFIG="$(expand_path ./kubernetes/bootstrap/talos/clusterconfig/talosconfig)"
|
export TALOSCONFIG="$(expand_path ./kubernetes/bootstrap/talos/clusterconfig/talosconfig)"
|
||||||
export KREW_ROOT="$(expand_path ~/.krew/bin)";
|
export KREW_ROOT="$(expand_path ~/.krew/bin)";
|
||||||
|
export CLUSTER="theshire"
|
||||||
|
export KUBERNETES_DIR="$(expand_path ./kubernetes)"
|
||||||
PATH_add $KREW_ROOT
|
PATH_add $KREW_ROOT
|
||||||
use nix
|
use nix
|
||||||
|
|
|
@ -6,3 +6,4 @@ theshire-merry.yaml
|
||||||
theshire-rosie.yaml
|
theshire-rosie.yaml
|
||||||
talosconfig
|
talosconfig
|
||||||
theshire-gandalf-01.yaml
|
theshire-gandalf-01.yaml
|
||||||
|
theshire-shadowfax-01.yaml
|
||||||
|
|
|
@ -116,6 +116,47 @@ nodes:
|
||||||
machine:
|
machine:
|
||||||
sysctls:
|
sysctls:
|
||||||
vm.nr_hugepages: "1024"
|
vm.nr_hugepages: "1024"
|
||||||
|
- &kubelet_extra_mounts |-
|
||||||
|
machine:
|
||||||
|
kubelet:
|
||||||
|
extraMounts:
|
||||||
|
- destination: /var/openebs/local
|
||||||
|
type: bind
|
||||||
|
source: /var/openebs/local
|
||||||
|
options:
|
||||||
|
- bind
|
||||||
|
- rshared
|
||||||
|
- rw
|
||||||
|
- 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
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
schematic:
|
schematic:
|
||||||
customization:
|
customization:
|
||||||
|
|
Loading…
Reference in a new issue