Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
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
38 changes: 33 additions & 5 deletions .github/workflows/flate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,45 @@ jobs:
name: Flate - Pull Images
runs-on: cluster-runner
steps:
# 96MiB per run, on every container PR. /tool-cache is a shared RWX cache: optional,
# and writable by any job, so every binary is sha256-checked against the release.
- name: Install talosctl
env:
# renovate: datasource=github-releases depName=siderolabs/talos
TALOS_VERSION: v1.13.8
run: |
set -euo pipefail
mkdir -p "$HOME/.local/bin"
curl -fsSL -o "$HOME/.local/bin/talosctl" \
"https://github.com/siderolabs/talos/releases/download/${TALOS_VERSION}/talosctl-linux-amd64"
chmod +x "$HOME/.local/bin/talosctl"
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
base="https://github.com/siderolabs/talos/releases/download/${TALOS_VERSION}"
bin="$HOME/.local/bin"
cache="/tool-cache/talosctl-${TALOS_VERSION}"
mkdir -p "$bin"

want=$(curl -fsSL "${base}/sha256sum.txt" | awk '$2 == "talosctl-linux-amd64" { print $1 }')
[[ -n "$want" ]] || { echo "no sha256 published for talosctl-linux-amd64"; exit 1; }
verify() { [[ -f "$1" ]] && echo "${want} $1" | sha256sum --check --status; }

# verify the copy, not the shared entry: check-then-read leaves a swap window
if cp "$cache" "$bin/talosctl" 2>/dev/null && verify "$bin/talosctl"; then
echo "talosctl ${TALOS_VERSION} served from cache"
else
curl -fsSL -o "$bin/talosctl" "${base}/talosctl-linux-amd64"
verify "$bin/talosctl" || { echo "sha256 mismatch on downloaded talosctl"; exit 1; }
if [[ -w /tool-cache ]]; then
# mktemp, not $$: PIDs collide across pods sharing the mount
tmp=$(mktemp "/tool-cache/.talosctl.XXXXXX")
trap 'rm -f -- "$tmp"' EXIT
cp "$bin/talosctl" "$tmp"
chmod 0644 "$tmp"
mv -f "$tmp" "$cache"
trap - EXIT
# only the pinned version is read; -ignore_readdir_race so a concurrent
# pruner removing the same entry is not a failure
find /tool-cache -maxdepth 1 -ignore_readdir_race \
-name 'talosctl-*' ! -name "talosctl-${TALOS_VERSION}" -delete
fi
fi
chmod +x "$bin/talosctl"
echo "$bin" >> "$GITHUB_PATH"

# One runner pod pulls all images to its node; Spegel mirrors the blobs cluster-wide,
# so a single node is enough to pre-warm (and beats one pod + talosctl install per image).
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/gitleaks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ jobs:
main:
name: Gitleaks - Scan
runs-on: ubuntu-latest
permissions:
contents: read
steps:
Comment thread
Tanguille marked this conversation as resolved.
Resolved
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ spec:
- mountPath: /var/run/secrets/talos.dev
name: talos
readOnly: true
- mountPath: /tool-cache
name: tool-cache
serviceAccountName: *app
# runner is uid/gid 1001; without fsGroup the CephFS mount lands root-owned
securityContext:
fsGroup: 1001
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
# Best-effort spread so one node blip can't kill a whole review batch (3× on 2026-07-02).
# ScheduleAnyway (not DoNotSchedule) so CI still runs when a node is down.
topologySpreadConstraints:
Expand All @@ -66,3 +71,6 @@ spec:
- name: talos
secret:
secretName: *app
- name: tool-cache
persistentVolumeClaim:
claimName: runner-tool-cache
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ resources:
- secrets.sops.yaml
- helmrelease.yaml
- ocirepository.yaml
- pvc.yaml
- rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
# talosctl is 96MiB and the Flate pull job runs on ~400 container PRs a month.
# RWX so all runner pods share one copy per version; the workflow verifies and prunes.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: runner-tool-cache
spec:
storageClassName: ceph-filesystem
accessModes: ["ReadWriteMany"]
resources:
requests:
storage: 2Gi
1 change: 1 addition & 0 deletions kubernetes/apps/ai/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ kind: Kustomization
namespace: ai
components:
- ../../components/common
- ../../components/ndots-1
- ../../components/kopiur/privileged-movers
resources:
- ./hermes/ks.yaml
Expand Down
1 change: 0 additions & 1 deletion kubernetes/apps/ai/litellm/instance/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spec:
app.kubernetes.io/instance: litellm
endpoints:
- port: http
path: /metrics
interval: 1m
scrapeTimeout: 10s
authorization:
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/apps/ai/llmkube/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ spec:
enabled: false
resources:
requests:
cpu: 10m
memory: 128Mi
limits:
memory: 128Mi
Expand Down Expand Up @@ -49,7 +48,6 @@ spec:
operator:
enabled: true
folder: ai
mode: auto
instanceSelector:
matchLabels:
grafana.internal/instance: grafana
Expand Down
10 changes: 5 additions & 5 deletions kubernetes/apps/ai/llmkube/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ spec:
- apiVersion: inference.llmkube.dev/v1alpha1
kind: InferenceService
failed: has(status.phase) && status.phase == 'Failed'
# Stopped only ever means spec.replicas=0, i.e. someone parked the service on
# purpose (qwen36-27b-vllm today); a model that breaks lands in Failed above.
# The CRD tells readiness pollers to treat Stopped as Pending, but this gate asks
# "has the Kustomization converged", and a parked service has. Excluding it would
# hang llmkube-models forever, and litellm and memini behind it.
# Stopped only ever means spec.replicas=0, i.e. qwen36-27b was parked on purpose;
# a model that breaks lands in Failed above. The CRD tells readiness pollers to
# treat Stopped as Pending, but this gate asks "has the Kustomization converged",
# and a parked service has. Excluding it would hang llmkube-models forever, and
# litellm and memini behind it.
current: has(status.phase) && (status.phase == 'Stopped' || (status.phase == 'Ready' && has(status.conditions) && status.conditions.exists(e, e.type == 'Available' && e.status == 'True')))
path: ./kubernetes/apps/ai/llmkube/models
prune: true
Expand Down
3 changes: 0 additions & 3 deletions kubernetes/apps/ai/llmkube/models/qwen36-27b-vllm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ spec:
value: "0"
- name: ROCR_VISIBLE_DEVICES
value: "0"
# Keep runtime compile caches on the persistent cache volume.
- name: VLLM_CACHE_ROOT
value: /cache/vllm
- name: TRITON_CACHE_DIR
Expand All @@ -120,7 +119,6 @@ spec:
- name: compile-cache
mountPath: /cache
extraArgs:
# Expose the stable API model name.
- --served-model-name
- qwen-3.6
# Disable image and video multimodal inputs.
Expand All @@ -135,7 +133,6 @@ spec:
- --kv-cache-memory-bytes
- "4294967296"
probeOverrides:
# Allow ample time for model startup and compilation.
startup:
httpGet:
path: /health
Expand Down
11 changes: 3 additions & 8 deletions kubernetes/apps/ai/omniroute/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ spec:
kind: OCIRepository
name: app-template
interval: 30m
valuesFrom:
- kind: ConfigMap
name: ndots-1

values:
controllers:
Expand Down Expand Up @@ -47,14 +50,6 @@ spec:
cpu: 1000m
memory: 2Gi
defaultPodOptions:
# Default ndots:5 search-expands "opencode.ai" to
# "opencode.ai.svc.cluster.local" first, which matches our own
# in-namespace opencode Service — silently hijacking every lookup of
# the real opencode.ai provider. ndots:1 tries the absolute name first.
dnsConfig:
options:
- name: ndots
value: "1"
securityContext:
runAsNonRoot: true
runAsUser: 1000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ endpoints:
ports:
- port: 4096
name: http
protocol: TCP
3 changes: 0 additions & 3 deletions kubernetes/apps/ai/opencode/app/opencode-vm-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ kind: Service
metadata:
name: opencode-vm
spec:
type: ClusterIP
clusterIP: None
ports:
- port: 4096
targetPort: 4096
name: http
protocol: TCP
1 change: 0 additions & 1 deletion kubernetes/apps/database/dragonfly/cluster/podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ spec:
app.kubernetes.io/name: dragonfly
podMetricsEndpoints:
- port: admin
path: /metrics
interval: 1m
scrapeTimeout: 10s
5 changes: 0 additions & 5 deletions kubernetes/apps/default/homepage/app/resources/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,19 @@ layout:
Repositories: { tab: Home, style: row, columns: 3, header: true }
Observability Docs: { tab: Home, style: row, columns: 3, header: true }

# Media tab
Requests: { tab: Media, style: row, columns: 2 }
Library: { tab: Media, style: row, columns: 3 }
Downloaders: { tab: Media, style: row, columns: 2 }
Management: { tab: Media, style: row, columns: 4 }
Processing: { tab: Media, style: row, columns: 3 }

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

# Apps tab
Portals: { tab: Apps, style: row, columns: 4 }
Utilities: { tab: Apps, style: row, columns: 4 }
Web3: { tab: Apps, style: row, columns: 3 }

# Observability tab
Metrics: { tab: Observability, style: row, columns: 4 }
Logs: { tab: Observability, style: row, columns: 3 }

# Infra tab
External: { tab: Infra, style: row, columns: 3 }
3 changes: 3 additions & 0 deletions kubernetes/apps/default/immich/server/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
# 100Gi CephFS upload volume: without this kubelet recursively chowns it on
# every pod start
fsGroupChangePolicy: OnRootMismatch
controllers:
immich-server:
strategy: RollingUpdate
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/apps/default/nextcloud/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
# FROM_ADDRESS lives in the app's sops secret, NOT in cluster-secrets — ${VAR}
# substitution never resolved it (silently empty until flux strict mode made it
# a build error). Chart 9.2.0 has no fromAddressKey in existingSecret (it reads
# a plain value at nextcloud.mail.fromAddress), so inject it flux-natively here.
# a plain value at nextcloud.mail.fromAddress), still absent at 9.2.5, so inject it here.
# SMTP_HOST needs no injection: existingSecret.smtpHostKey wires it directly.
valuesFrom:
- kind: Secret
Expand Down Expand Up @@ -469,7 +469,6 @@ spec:
enabled: true
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 5
failureThreshold: 10

resources:
Expand Down
9 changes: 5 additions & 4 deletions kubernetes/apps/default/nextcloud/app/scripts/cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ run_occ() {
php occ "$cmd" || echo "WARNING: $warning_msg" >&2
}

# App list is cached once: each `occ` call is a full Nextcloud bootstrap
INSTALLED_APPS="$(php occ app:list)"

# Helper function to check if an app is installed
app_installed() {
echo "$INSTALLED_APPS" | grep -q "$1"
Expand All @@ -32,11 +29,15 @@ run_if_app_installed() {

echo "Starting Nextcloud cron job at $(date)"

if ! run_occ "status" >/dev/null 2>&1; then
# Not run_occ: it swallows the exit code, so the guard could never fire
if ! php occ status >/dev/null 2>&1; then
echo "WARNING: Nextcloud not ready, skipping cron job" >&2
exit 0
fi

# Cached once: each `occ` call is a full Nextcloud bootstrap
INSTALLED_APPS="$(php occ app:list)"

# Run standard Nextcloud cron (every 5 minutes)
# This is the main cron job that Nextcloud requires
if ! php -f /var/www/html/cron.php; then
Expand Down
Loading