Skip to content

Commit

Permalink
--wip-- [skipci]
Browse files Browse the repository at this point in the history
  • Loading branch information
brettinternet committed Oct 29, 2024
1 parent 81edd51 commit 1366239
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
requests:
cpu: 500m
limits:
memory: 12Gi
memory: 8Gi
monitoring:
enablePodMonitor: true
backup:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/main/apps/default/linkding/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ spec:
memory: 512M
limits:
# For HTML snapshot spike
memory: 8G
memory: 4Gi
service:
app:
controller: linkding
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/main/apps/home/frigate/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
cpu: 100m
limits:
gpu.intel.com/i915: "1"
memory: 8Gi
memory: 4Gi
defaultPodOptions:
affinity:
podAntiAffinity:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
cpu: 10m
limits:
device-plugin.arpa/zigbee: 1
memory: 8Gi
memory: 4Gi
code-server:
image:
repository: ghcr.io/coder/code-server
Expand Down
8 changes: 4 additions & 4 deletions kubernetes/main/apps/home/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespace.yaml
- ./esphome/ks.yaml
- ./frigate/ks.yaml
- ./home-assistant/ks.yaml
- ./mosquitto/ks.yaml
# - ./esphome/ks.yaml
# - ./frigate/ks.yaml
# - ./home-assistant/ks.yaml
# - ./mosquitto/ks.yaml
# - ./zigbee2mqtt/ks.yaml
2 changes: 1 addition & 1 deletion kubernetes/main/apps/media/sabnzbd/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
requests:
cpu: 100m
limits:
memory: 8Gi
memory: 4Gi
defaultPodOptions:
securityContext:
runAsNonRoot: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ spec:
requireMsgr2: true
storage:
useAllNodes: true
useAllDevices: true
# deviceFilter: "^nvme.n1$"
useAllDevices: false
deviceFilter: sda
config:
osdsPerDevice: "1"
osdsPerDevice: "2"
placement:
mgr: &placement
nodeAffinity:
Expand Down
11 changes: 8 additions & 3 deletions kubernetes/main/bootstrap/talos/talconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ nodes:
# Baremetal
- hostname: "k-0"
ipAddress: "10.1.2.100"
installDisk: /dev/disk/by-id/nvme-INTEL_SSDPEKKW256G7_BTPY64540F5A256D
installDiskSelector:
type: nvme
# https://factory.talos.dev/?arch=amd64&cmdline-set=true&extensions=-&extensions=siderolabs%2Fi915-ucode&extensions=siderolabs%2Fintel-ucode&extensions=siderolabs%2Fiscsi-tools&extensions=siderolabs%2Futil-linux-tools&platform=metal&target=metal&version=1.8.1
talosImageURL: &talosIntelGpuImage factory.talos.dev/installer/ebdfa27a8d6272acf806ac6a5c968c3c284a47ce880273cecb19442c11bf0474
schematic: &schematic
Expand Down Expand Up @@ -54,7 +55,8 @@ nodes:
ip: *kubeApiIP
- hostname: "k-1"
ipAddress: "10.1.2.101"
installDisk: /dev/disk/by-id/nvme-INTEL_SSDPEKKW256G7_BTPY63420579256D
installDiskSelector:
type: nvme
talosImageURL: *talosIntelGpuImage
schematic: *schematic
controlPlane: true
Expand All @@ -70,7 +72,8 @@ nodes:
vip: *vip
- hostname: "k-2"
ipAddress: "10.1.2.102"
installDisk: /dev/disk/by-id/nvme-Samsung_SSD_960_EVO_250GB_S3ESNX0J808577J
installDiskSelector:
type: nvme
talosImageURL: *talosIntelGpuImage
schematic: *schematic
controlPlane: true
Expand All @@ -85,6 +88,8 @@ nodes:
mtu: *mtu
vip: *vip

# TODO: add udev rule patch for USB devices
# https://github.com/buroa/k8s-gitops/blob/6e4b93e2d77171a17642357cf7aac3819c1f22ad/talos/talconfig.yaml#L415-L419
patches:
- # Force nameserver
|-
Expand Down
2 changes: 1 addition & 1 deletion scripts/wipe-disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Run this in the rook ceph tools pod container on each node:

DISK="/dev/nvme1n1"; \
DISK="/dev/sda"; \
sgdisk --zap-all $DISK; \
dd if=/dev/zero of="$DISK" bs=1M count=100 oflag=direct,dsync; \
blkdiscard $DISK; \
Expand Down

0 comments on commit 1366239

Please sign in to comment.