Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://k8s-schemas.home-operations.com/helm.toolkit.fluxcd.io/helmrelease_v2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
Expand Down
8 changes: 3 additions & 5 deletions kubernetes/apps/database/cloudnative-pg/cluster/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ spec:
superuserSecret:
name: cloudnative-pg-secret
enableSuperuserAccess: true
# Declarative app roles (CNPG-native, replacing postgres-init). Password sourced from a
# basic-auth Secret in this namespace; CNPG enforces it, so the app's DATABASE_URL must match.
# Static password: CNPG can rotate a managed role's password, but nothing here re-syncs it
# into the app's DATABASE_URL secret. Rotation is not enabled for these roles today; if it
# ever is, add a mechanism (e.g. Reloader-driven resync) to keep the two in step.
# Declarative app roles (CNPG-native, replacing postgres-init). Password comes from a
# basic-auth Secret here and CNPG enforces it, so the app's DATABASE_URL must match.
# Nothing re-syncs the two, so password rotation is off for these roles.
managed:
roles:
- name: litellm
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://k8s-schemas.home-operations.com/postgresql.cnpg.io/pooler_v1.json
# Transaction-mode RO PgBouncer → replicas only (no primary max_connections usage).
# Per logical DB: up to instances × max_db_connections server conns from this deployment.
apiVersion: postgresql.cnpg.io/v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://k8s-schemas.home-operations.com/postgresql.cnpg.io/pooler_v1.json
# Session-mode RW pooler (prepared statements, advisory locks, etc.). Service:
# pgbouncer-session.database.svc.cluster.local:5432 — same primary as pgbouncer-rw.
apiVersion: postgresql.cnpg.io/v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://k8s-schemas.home-operations.com/postgresql.cnpg.io/pooler_v1.json
# Transaction-mode RW PgBouncer → primary. Per pod, max_db_connections caps server conns
# to one Postgres database (PgBouncer docs). Through this Pooler only: up to
# instances × max_db_connections per DB; multiple DBs on the primary add separately.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ spec:
name: postgres16
name: litellm
owner: litellm
# Never drop the database if this CR is deleted — litellm stores virtual keys, spend, teams.
databaseReclaimPolicy: retain
1 change: 0 additions & 1 deletion kubernetes/apps/default/homepage/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ spec:

defaultPodOptions:
automountServiceAccountToken: true
enableServiceLinks: false
securityContext:
runAsUser: 1000
runAsGroup: 1000
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/apps/default/homepage/app/resources/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ layout:
Processing: { tab: Media, style: row, columns: 3 }

# AI tab
Interfaces: { tab: AI, style: row, columns: 3 }
Models: { tab: AI, style: row, columns: 3 }
Agents: { tab: AI, style: row, columns: 3 }

# Apps tab
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/karakeep/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ spec:
gethomepage.dev/group: Utilities
gethomepage.dev/icon: karakeep.png
hostnames:
- karakeep.${SECRET_DOMAIN}
- "{{ .Release.Name }}.${SECRET_DOMAIN}"
parentRefs:
- name: envoy-internal
namespace: network
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ spec:

values:
defaultPodOptions:
automountServiceAccountToken: false
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
securityContext:
Expand Down Expand Up @@ -123,7 +122,6 @@ spec:

persistence:
config:
enabled: true
storageClass: ceph-block
accessMode: ReadWriteOnce
size: 1Gi
Expand Down
1 change: 0 additions & 1 deletion kubernetes/apps/default/searxng/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ spec:
cpu: 500m
memory: 1Gi
defaultPodOptions:
enableServiceLinks: false
securityContext:
fsGroup: 977
fsGroupChangePolicy: OnRootMismatch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ spec:
artifact: oci://ghcr.io/controlplaneio-fluxcd/flux-operator-manifests:v0.57.0
cluster:
networkPolicy: false
components:
- source-controller
- kustomize-controller
- helm-controller
- notification-controller
sync:
kind: GitRepository
url: https://github.com/tanguille/cluster.git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ spec:
rules:
- backendRefs:
- name: webhook-receiver
namespace: flux-system
port: 80
matches:
- path:
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/apps/kube-system/amdgpu-undervolt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ spec:
containers:
- name: app
image: ghcr.io/home-operations/busybox:1.38.0@sha256:7e2c04dd50ede647bf4a7a4c8dbd629dd4971cd139b9b88fb22bfc3c7a6c13df
imagePullPolicy: IfNotPresent
env:
- name: VOLTAGE_OFFSET_MV
value: "-82"
Expand All @@ -31,7 +30,7 @@ spec:
# 290W -> 1150 PP / 27.80 TG 330W -> 1301 PP / 23.29 TG (drew 313)
# Decode is bandwidth-bound and flat at ~23 across the whole range, so
# watts only buy prefill. 250 takes +15% PP for 2.8% worse PP/W; 330
# takes +27% for 15% worse. 210 remains the best tok/W on both metrics.
# takes +27% for 15% worse. 210 is best tok/W; 250 buys prefill headroom.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Correct the PP/W percentage in the tuning comment.

The measurements on Line 29 and Line 30 imply roughly 19% worse PP/W for 330W versus 210W, not 15%. Correct the percentage or state the comparison baseline explicitly.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@kubernetes/apps/kube-system/amdgpu-undervolt.yaml` at line 33, Correct the
tuning comment near the 210W/250W guidance to state that 330W is roughly 19%
worse in PP/W based on the measurements on lines 29–30, or explicitly identify
the comparison baseline if retaining a different percentage.

- name: POWER_LIMIT_WATTS
value: "250"
# Measured sweep at 209W, 60s avg per point: 82C->3274rpm/mem 80C,
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/apps/kube-system/cilium/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ spec:
# Use jiffies for CT map (tuning guide)
bpfClockProbe: true
cgroup:
automount:
enabled: false
hostRoot: /sys/fs/cgroup
cni:
exclusive: false
Expand Down
12 changes: 2 additions & 10 deletions kubernetes/apps/kube-system/etcd-defrag/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ spec:
values:
defaultPodOptions:
# Must use host network and PID namespace to access Talos etcd on localhost:2379.
automountServiceAccountToken: false
hostNetwork: true
hostPID: true
securityContext:
runAsGroup: 0
runAsNonRoot: false
runAsUser: 0
# Ensure this only runs on the control plane node
nodeSelector:
node-role.kubernetes.io/control-plane: ""
tolerations:
Expand All @@ -32,14 +30,11 @@ spec:
etcd-defrag:
type: cronjob
cronjob:
# Daily at 03:00. The previous weekly cadence let fragmentation cross the
# 50% alert threshold by day 4; a full 3-member pass costs ~95s.
# Weekly let fragmentation cross the 50% alert threshold by day 4; a
# full 3-member pass costs ~95s.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Keep the CronJob comment aligned with its schedule.

The schedule on Line 36 is daily (0 3 * * *), but the new comment says “Weekly.” Replace that wording so operators do not infer the wrong defragmentation cadence. (kubernetes.io)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@kubernetes/apps/kube-system/etcd-defrag/app/helmrelease.yaml` around lines 33
- 34, Update the CronJob comment above the schedule in the etcd defragmentation
configuration to say “Daily” instead of “Weekly,” keeping the rest of the
explanation unchanged and aligned with the existing `0 3 * * *` schedule.

timeZone: ${TIMEZONE}
schedule: "0 3 * * *"
concurrencyPolicy: Forbid
backoffLimit: 1
failedJobsHistory: 1
successfulJobsHistory: 1
containers:
app:
image:
Expand All @@ -51,15 +46,12 @@ spec:
- --cacert=/certs/ca.crt
- --cert=/certs/server.crt
- --key=/certs/server.key
# Defrag when DB quota usage > 50% OR free space > 50MB
- --defrag-rule=dbQuotaUsage > 0.5 || dbSizeFree > 50*1024*1024
# Move the leader before defragmenting it.
- --move-leader
# --cluster defragments all three control-plane etcd members.
- --wait-between-defrags=30s
# Talos uses etcd's default --quota-backend-bytes value (2 GiB).
- --etcd-storage-quota-bytes=2147483648
# Auto-disalarm space quota alarms
- --auto-disalarm
- --disalarm-threshold=0.8
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ spec:
datasources:
- datasourceName: prometheus
inputName: DS_PROMETHEUS
url: https://raw.githubusercontent.com/spegel-org/spegel/v0.7.2/charts/spegel/monitoring/grafana-dashboard.json
url: https://raw.githubusercontent.com/spegel-org/spegel/v0.7.4/charts/spegel/monitoring/grafana-dashboard.json
3 changes: 2 additions & 1 deletion kubernetes/apps/kube-system/spegel/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: spegel
namespace: &namespace kube-system
spec:
interval: 1h
path: ./kubernetes/apps/kube-system/spegel/app
Expand All @@ -12,5 +13,5 @@ spec:
kind: GitRepository
name: flux-system
namespace: flux-system
targetNamespace: kube-system
targetNamespace: *namespace
wait: false
2 changes: 1 addition & 1 deletion kubernetes/apps/media/brrpolice/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: brrpolice
name: &app brrpolice
namespace: &namespace media
spec:
components:
Expand Down
1 change: 0 additions & 1 deletion kubernetes/apps/media/deduparr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ spec:
enabled: true
spec:
failureThreshold: 30
periodSeconds: 10
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
Expand Down
4 changes: 0 additions & 4 deletions kubernetes/apps/media/fileflows/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ spec:
existingClaim: *app
globalMounts:
- path: /app/Data
readOnly: false

temp:
type: emptyDir
globalMounts:
- path: /temp
readOnly: false
9 changes: 0 additions & 9 deletions kubernetes/apps/media/jellyfin/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ spec:

values:
defaultPodOptions:
# squat.ai/dri already hard-pins scheduling to the GPU node
securityContext:
runAsUser: 568
runAsGroup: 568
Expand Down Expand Up @@ -55,7 +54,6 @@ spec:
enabled: true
spec:
failureThreshold: 30
periodSeconds: 10
lifecycle:
preStop:
exec:
Expand Down Expand Up @@ -104,10 +102,6 @@ spec:
persistence:
config:
existingClaim: jellyfin
advancedMounts:
jellyfin:
app:
- path: /config

# not the nfs-media component: library paths in the db use /ext_media
media:
Expand All @@ -116,13 +110,10 @@ spec:
path: ${MEDIA_NFS_PATH}
globalMounts:
- path: /ext_media
readOnly: false

library:
type: hostPath
hostPath: "/var/mnt/merged/"
globalMounts:
- path: /var/mnt/merged/

tmpfs:
type: emptyDir
Expand Down
1 change: 0 additions & 1 deletion kubernetes/apps/media/prowlarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ spec:

values:
defaultPodOptions:
enableServiceLinks: false
securityContext:
runAsUser: 568
runAsGroup: 568
Expand Down
9 changes: 0 additions & 9 deletions kubernetes/apps/media/qbittorrent/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ spec:
enabled: true
spec:
failureThreshold: 30
periodSeconds: 10
lifecycle:
preStop:
exec:
Expand Down Expand Up @@ -91,17 +90,9 @@ spec:
- name: envoy-internal
namespace: network

rules:
- backendRefs:
- identifier: app
port: *port
persistence:
config:
existingClaim: *app
advancedMounts:
qbittorrent:
app:
- path: /config

tmp:
type: emptyDir
Original file line number Diff line number Diff line change
Expand Up @@ -109,25 +109,19 @@ spec:

persistence:
config:
type: persistentVolumeClaim
storageClass: ceph-block
accessMode: ReadWriteOnce
size: 2Gi
globalMounts:
- path: /config
readOnly: false

config-template:
type: configMap
name: qbitrr-config
globalMounts:
- path: /config-template
readOnly: true
- readOnly: true

downloads:
type: nfs
server: ${TRUENAS_IP}
path: ${MEDIA_NFS_PATH}/Downloads
globalMounts:
- path: /completed_downloads
readOnly: false
2 changes: 0 additions & 2 deletions kubernetes/apps/media/qbittorrent/tools/qbitrr/ks.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
# Flux Kustomization for qbitrr — deps live here; substitution comes from the cluster-apps
# defaults patch (cluster-settings + cluster-secrets, which hold the *arr API keys).
# yaml-language-server: $schema=https://k8s-schemas.home-operations.com/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
Expand Down
8 changes: 0 additions & 8 deletions kubernetes/apps/media/qui/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ spec:
enabled: true
spec:
failureThreshold: 30
periodSeconds: 10
resources:
requests:
cpu: 10m
Expand All @@ -67,7 +66,6 @@ spec:
readOnlyRootFilesystem: true
capabilities: { drop: ["ALL"] }
defaultPodOptions:
enableServiceLinks: false
securityContext:
runAsNonRoot: true
runAsUser: 568
Expand Down Expand Up @@ -99,15 +97,9 @@ spec:
parentRefs:
- name: envoy-internal
namespace: network
rules:
- backendRefs:
- identifier: app
port: *port
persistence:
config:
existingClaim: *app
globalMounts:
- path: /config

tmp:
type: emptyDir
1 change: 0 additions & 1 deletion kubernetes/apps/media/radarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ spec:
capabilities: { drop: ["ALL"] }

defaultPodOptions:
enableServiceLinks: false
securityContext:
runAsUser: 568
runAsGroup: 568
Expand Down
Loading
Loading