31 KiB
Application Operations
Current status and recent events
./jeannie status defaults to fast mode: it checks current host, cluster,
workload, DNS, registry, and public-route health without log scans, OCI backup
freshness, or an AI response. ./jeannie status --deep adds those checks,
restart history, and inventory/storage checks. Add --ai to request an
unverified AI hypothesis for status or a doctor. --no-local-rca disables it;
--verbose implies deep mode. The
report identifies its mode, and fast mode cannot establish backup freshness or
the absence of recent errors. Healing collects deep evidence and rejects an
explicitly supplied fast status report.
After a planner-driven heal, Jeannie verifies the original finding with a
focused live check: the affected Gitea endpoint/container, RPi DNS or service,
selected cluster runtime/API/node, or stale-pod eligibility. Kubernetes
verification rechecks the pinned identity. An unknown action is not declared
healed; failed checks retry up to LAB_HEAL_VERIFY_TIMEOUT_SECONDS (default
180 seconds), with the configured verification interval.
Compact status and doctor-homelab run independent read-only probes in
parallel (four at a time by default, capped at eight). Set
LAB_REPORT_PARALLELISM=1 to serialize them or LAB_REPORT_TIMING=true to
print probe elapsed time. Identical selected HTTP/container probes reuse results
only within that report. HTTP checks for the same URL also share one response
while retaining each check's accepted status codes. Healing performs its own
live identity checks.
Compact reports also share one nodes, pods, Deployments, and StatefulSets list
per resource type as needed; snapshots are point-in-time, may differ across
resource types, and are discarded when the report ends. API readiness, logs,
identity checks, and healing verification continue to query live services.
Status examines Gitea and Traefik logs from the last five minutes by default;
LAB_STATUS_LOG_SINCE overrides the interval. A few Gitea client disconnects
are informational only when its container, local HTTP, and public HTTP checks
pass. Other log errors, repeated disconnects, or failed checks remain warnings
and point to doctor-gitea. Information alone does not select a heal action.
With --ai, compact reports send structured findings to the selected model.
Observed facts come from report rows. Hypotheses must cite existing check IDs;
the next command must be an exact read-only command from the report and the
allowlist. Invalid responses are rejected. Validation cannot prove a hypothesis
correct; AI output does not decide status or authorize healing. OmniRoute may
send evidence to an external provider; use Ollama for local inference.
OCI backup scheduling
Run ./jeannie backup oci schedule as the Debian operator to install the daily
upload and freshness timers under that account. Run ./jeannie backup oci upload
for a fresh encrypted archive, then ./jeannie backup oci freshness and
./jeannie backup oci restore-verify to check upload age and archive recovery.
The profile archive contains inventory, Gitea backup, and OpenTofu state; it
does not establish coverage of the native K3s datastore or PVC data.
Profile-aware diagnostics and healing
Persist the operational cluster on the Debian deployment host with
./jeannie cluster-profile select k3s (also supports debian and pimox).
CLI, API/Temporal jobs, and self-healing share this selection. Remote/service
commands replace stale kubeconfig/runtime variables; local commands can select
another declared profile with LAB_CLUSTER_PROFILE. Selection does not start
or stop runtimes. Reports print the chosen profile and kubeconfig.
status, doctor-cluster, doctor-homelab, mesh, capacity, GitOps, and recovery
tools use the selected control plane. Native K3s checks the Orange Pi service,
SSD mount, nodes, and bundled CRI. Stopped Pimox VMs are expected in that profile;
VM restart and singleton drain actions are refused. Kubeadm profiles retain VM
checks and worker recovery. ./jeannie workers disk-status control-plane inspects
native runtime storage; disk-cleanup control-plane --yes prunes unused images
and host journals after identity, data-mount, and registry checks.
After updating, run ./jeannie platform monitoring and
./jeannie self-heal install-service --apply. Prometheus attaches profile and
namespace UID labels; automatic healing skips missing or mismatched labels.
Saved doctor reports also require matching cluster metadata. Audit logs and
healing cooldowns live under clusters/<profile> in the homelab state directory.
Native datastore/PVC backup coverage still needs separate verification; a VM
archive alone does not back up native K3s.
Tetragon kernel capability
Platform applies probe /sys/kernel/btf/vmlinux over SSH on each live node
using the declared cluster credentials, then label nodes with
homelab.dev/kernel-btf=true or false. Tetragon's agent selects nodes with
the true label. If no node exposes BTF, Helm disables the agent DaemonSet and
reports that runtime tracing is unavailable. The operator remains installed.
Plans probe capability without changing labels. SSH probe failures stop the
operation rather than being interpreted as missing BTF.
This applies to every cluster profile. The Orange Pi Rockchip kernel
5.10.160-rockchip-rk3588 was observed without host BTF, so the native profile
currently has no Tetragon agent coverage. Running the agent requires a kernel
with BTF enabled or a separately configured BTF artifact matching the exact
kernel build. The pipeline does not install or replace host kernels. BTF
presence is a prerequisite, not proof that all eBPF features are supported.
Homelab Overview dashboard
When the selected cluster is remote, platform/apps applies and edge route setup
detach retired Kubernetes entry hooks on the Debian deployment laptop after
checking the active cluster identity and confirming local kubelet/K3s and the
API listener are stopped. This prevents old service NAT rules from intercepting
the live Traefik VIP. Docker, Tailscale and registry forwarding rules are kept.
To reconcile immediately, run LAB_CLUSTER_PROFILE=k3s python3 scripts/retire-debian-service-hooks.py on Debian. A private iptables snapshot
is retained under the selected profile's diagnostics directory.
The Homelab Overview dashboard (homelab-overview) shows host CPU, memory,
filesystems and network interfaces, plus Kubernetes node readiness and
container usage. It uses Kubernetes node-exporter discovery for whichever
cluster profile is active and separate debian-host, pimox-host, rpi-node
and oci-edge-node scrape jobs for the laptop, Orange Pi host, Raspberry Pi
and OCI edge. A physical host that is also a Kubernetes node can appear twice;
the job in each legend identifies the source.
./jeannie platform monitoring installs or starts the Debian package
prometheus-node-exporter on the laptop and Orange Pi through SSH when needed,
then deploys the scrape jobs and dashboard. A setup failure is reported and the
corresponding target remains down. Set LAB_MONITORING_MANAGE_HOST_EXPORTERS=false
to manage those services separately. Port 9100 must be reachable from cluster
pods. The RPi exporter is managed by the RPi services deployment.
The same command runs a dedicated cAdvisor Compose service on Debian and RPi,
on LAN port 9101, to collect Docker Compose CPU, memory and network metrics by
project and service. Its Docker root mount comes from Docker's live configuration.
The collector needs privileged host and Docker socket access; its exported
container labels are limited to the Compose project and service. Existing
application stacks are not restarted. LAB_MONITORING_MANAGE_HOST_EXPORTERS=false
also skips these collectors. The OCI edge stack has its own collector; run
./jeannie edge to deploy its updated image and labels. Prometheus
scrapes OCI cAdvisor over Tailscale on TCP/9101; override its endpoint with
LAB_OCI_EDGE_TAILSCALE_CONTAINER_METRICS_TARGET when necessary.
The OCI edge job uses hosts.oci_edge.tailscale_ip:9100 from homelab.yml;
LAB_OCI_EDGE_TAILSCALE_METRICS_TARGET overrides it. Prometheus needs a working
route from its node/pod to the tailnet, an authorized Tailscale source, and
access through the edge host firewall. The repository's tailnet policy grants
tag:homelab-control-plane and Debian access to ports 9100 and 9101; apply the policy
and tag/join the relevant nodes separately. Email VM monitoring is not part of
this dashboard. A down exporter is shown in the status table, while a target
that was never configured is absent.
Profile-aware application delivery
Run app operations with the intended profile and its pinned kubeconfig. The
native Orange Pi target uses LAB_CLUSTER_PROFILE=k3s and
KUBECONFIG="$HOME/.kube/opi5-k3s-config". Platform and Argo CD readiness must
complete before ./jeannie apps runs. The transition command sequences
these stages and stops when a prerequisite fails.
The Argo CD application-controller gate waits for the StatefulSet rollout, not
just a Ready pod that might belong to an older revision. Its default budget is
600 seconds; LAB_ARGOCD_READY_WAIT_SECONDS changes that bounded wait. Failure
output shows desired/ready/updated counts, revisions and recent warnings without
dumping the full StatefulSet environment. It does not restart the controller.
Application deployment verifies identity, renders scheduling estimates and discovers retained registry placement. A one-core VM is allowed when its reservations and placement permit the rollout; native K3s does not require old Pimox worker inventory. See the code map and deployment gates.
Website and demos retries preserve existing pods when their immutable image
reference is unchanged. Updating the Deployment image triggers the normal
rolling update; the apps pipeline does not delete all selected pods to force a
restart. The default rollout/readiness budget is 600 seconds, configurable with
LAB_APPS_READY_WAIT_SECONDS, including the final ready-replica check rather
than starting a second full wait after rollout. Slow initial image pulls can
consume this budget; a timeout does not by itself establish a container crash.
The optional Kubernetes Gitea runner stays at zero replicas across profiles; the Debian host runner performs CI. Its explicit Kustomization includes only namespace, deployment and PVC resources, leaving SOPS files and the parent Argo Application outside the rendered resource list. Preflight rejects encrypted documents in rendered app resources instead of allowing Argo to discover an encrypted API group. See runner source rules.
Adding Apps
Add Kubernetes manifests under apps/<name> and register them in
bootstrap/apps's applications map. Argo CD will own sync, pruning, and
self-healing for the app.
The heimdall Argo CD app name is retained as a small route bundle for
Grafana, Prometheus, Alertmanager, and Argo CD ingresses so the next app sync can
prune the old in-cluster Heimdall workload cleanly. Do not add new Kubernetes
workloads there. Use ./jeannie deploy-heimdall for the dashboard
itself.
The n8n app runs in the n8n namespace with retained OpenEBS storage and is
exposed at https://n8n.lab2025.duckdns.org. It receives
OLLAMA_BASE_URL=http://192.168.100.73:11434 so workflows can call the existing
Debian-host Ollama API for translation prewarming and batch jobs.
The ARR/media stack is intentionally not deployed by the Kubernetes app
pipeline. It is better suited to a Docker Compose stack on the Debian host with
persistent volumes under /data, where large media paths, qBittorrent writes,
and service config directories can survive cluster rebuilds without OpenEBS
node-affinity or PVC migration concerns. The active host-level Compose
definition lives under infra/arr-stack and stores persistent data under
/data/arr. Historical Kubernetes manifests are archived under
archive/apps/arr-stack for migration reference only.
The AI operations stack is also host-level. OmniRoute runs from
/data/homelab-ai-stack with Docker Compose, while goose, holmes, hermes,
Ollama, Jeannie doctors, and the generated wrappers stay on the Debian host.
Keep it outside Kubernetes so doctor-k8s and recovery workflows still work
when Pimox workers or cluster networking are the thing being investigated.
./jeannie deploy-ai-stack
./jeannie deploy-ai-tools
./jeannie ai-check
./jeannie doctor-k8s
Scheduled lab power window
Not available yet. The original SSH-based scheduler is disabled while its OCI agent installation, credential handling, and shutdown recovery are being reworked. Do not apply or enable the timers described below.
The OCI edge can keep the management plane available while starting the
selected cluster and host services at 08:00 and stopping the data plane at
17:00 in America/Mexico_City. The edge timer calls the authenticated Jeannie
API directly over Tailscale, so stopping the public edge proxy does not prevent
the next morning's start. jeannie-server and the edge VM remain running for
management; Kubernetes, Debian containers, RPi services, and the selected
profile runtime are stopped outside the window.
Set the API token in the environment used by ./jeannie edge apply, then apply
the edge stack:
export LAB_LAB_SCHEDULE_API_TOKEN="$JEANNIE_SERVER_TOKEN"
./jeannie edge apply
ssh ubuntu@<edge-host> 'systemctl list-timers homelab-lab-window-*'
ssh ubuntu@<edge-host> 'sudo systemctl start homelab-lab-window-stop.service'
The schedule is every day by default and does not catch up a missed event after
the edge reboots; this prevents an unexpected start outside the window. Disable it by setting
TF_VAR_lab_schedule_enabled=false and reapplying the edge stack. The manual
control remains available from Debian:
./jeannie lab-window status
./jeannie lab-window start
./jeannie lab-window stop
The stop action deliberately leaves jeannie-server and the OCI edge alive;
otherwise the edge could not call the API for the next start. Review the first
manual stop before relying on the timer.
Storage
OpenEBS provides the platform storage provisioner. Stateful Kubernetes apps use
retained local PV paths such as /data/openebs/local/registry; these paths are
intentionally outside kubeadm reset paths so data can survive cluster
destroy/create cycles. Those critical volumes are declared explicitly as
retained local PVs so a rebuilt cluster binds back to the same host paths
instead of creating fresh directories.
For the current lab, the HP Debian laptop's root filesystem is on NVMe, so the
standard Docker root /var/lib/docker is acceptable. OpenEBS retained hostpath
data still lives under /data/openebs/local, and larger service data such as
Gitea, Ollama models, and app volumes should stay under /data.
Local PV data belongs to the host where its node affinity points. For native K3s, the registry directory is on the Orange Pi, while Gitea and build data stay on the laptop. The laptop-to-native transition copies a verified registry union before native K3s starts, retains source/backup directories and writes a profile-scoped receipt. The apps pipeline checks that receipt against live node placement and storage before creating the registry PV. Different existing remote data is refused rather than overwritten.
The image endpoint remains 192.168.100.73:30500; forwarding resolves the live
selected registry node across profiles. Old Jeannie-tagged forwarding rules are
retired before installing the selected route. Other laptop PVC contents are
preserved locally and are not automatically restored into the new cluster.
See registry migration.
The local image policy excludes only container-registry and kyverno from its
namespace scope so those dependencies can recover without calling an unavailable
verifier. Other namespaces retain failurePolicy: Fail and signature/SBOM checks.
Apps reconciles this policy's exact generated webhook entries before waiting for
Argo CD; it preserves other selectors and all other webhooks, uses version-tested
patches and saves private backups. This repairs legacy scope while Kyverno is
unavailable rather than deleting webhook configurations or globally failing open.
It does not resolve node storage pressure: inspect the actual full filesystem
before pruning anything or moving a K3s datastore.
The native profile requires /data to be its declared writable mount, not a
directory on the eMMC root filesystem. After remounting a data disk, the pipeline
compares the host registry directory with the running pod's mounted directory
by filesystem and inode. A mismatch blocks changes so mounted data can be
preserved before any restart. Successful checks install a K3s mount dependency
for future service starts without restarting the live cluster.
Gitea
Gitea is external bootstrap infrastructure. It runs on the Debian host as an
always-on Docker Compose service from infra/gitea/docker-compose.yml, not as a
Kubernetes workload. This keeps Git available when the Kubernetes cluster is
destroyed and rebuilt.
The default data path is /data/homelab-gitea/data on the HP laptop NVMe.
Docker may use the standard /var/lib/docker root because / is also on NVMe.
Public source browsing stays available through
https://lab2025.duckdns.org/git/. Registration is disabled and anonymous users
can view public repositories, so the blog can link to code read-only while
writes still require an authenticated Gitea account.
Heimdall
Heimdall is external bootstrap infrastructure. It runs on the Debian host as an
always-on Docker Compose service from infra/heimdall/docker-compose.yml, not
as a Kubernetes workload. This keeps the lab navigation page available when the
cluster is destroyed, rebuilding, or unhealthy.
Deploy or refresh it from the Debian server with:
./jeannie deploy-heimdall
./jeannie up also runs this step during the independent host
services stage unless LAB_HEIMDALL_DEPLOY=false is set. The default data path
is /data/homelab-heimdall/data/config, and the local HTTP port is 8082.
Dashboard links are seeded from infra/heimdall/links.json by a sidecar
container that upserts repo-managed tiles without deleting manually added ones.
The Debian bare repo remains the GitOps mirror:
/home/jv/git-server/my-homelab-configs.git
Argo CD consumes that Debian mirror through the default gitops_repo_url.
Gitea Actions pushes the main commit into the mirror before running the
selected deploy command.
The platform bootstrap registers the Argo CD repository secret and the SSH host
key for the Debian GitOps mirror. If Argo CD reports
knownhosts: key is unknown after the Debian host was rebuilt or its SSH host
key changed, refresh argocd-ssh-known-hosts-cm in the argocd namespace,
restart argocd-repo-server, and hard-refresh the affected Application.
Deploy or refresh the external Gitea container from the Debian host with:
./jeannie deploy-gitea
Gitea Backups
./jeannie up installs a Debian-host systemd timer named
homelab-gitea-backup.timer. The timer runs daily, SSHes to the configured
Gitea host, executes gitea dump inside the Gitea Docker container, copies the
dump back to Debian, and stores it under /home/jv/backups/gitea. The default
retention is 30 days.
The same install step also creates homelab-gitea-restore-drill.timer. The
monthly drill is non-destructive: it verifies the latest backup ZIP, extracts it
to a temporary directory, records a report under
/home/jv/backups/gitea-restore-drills, and removes the temporary extract. It
does not write into the live Gitea data directory.
Run a manual backup from the Debian server with:
./jeannie backup-gitea
Run the restore drill manually with:
./jeannie drill-gitea-restore
./jeannie drill-restore
./jeannie drill-pihole-restore
drill-restore validates the latest Gitea backup archive, Pi-hole repo-managed
config inputs, the latest OpenTofu state backup archive when present, and the
GitOps rebuild path. It does not replace running services or mutate Kubernetes.
Useful checks:
./jeannie backup-status
systemctl list-timers homelab-gitea-backup.timer
systemctl list-timers homelab-gitea-restore-drill.timer
sudo systemctl start homelab-gitea-backup.service
ls -lh /home/jv/backups/gitea
ls -lh /home/jv/backups/gitea-restore-drills
Gitea Actions
This repo includes a Gitea Actions workflow at
.gitea/workflows/homelab-main.yml. It runs validation on pushes to dev and
main, and deploys only from main. That keeps the promotion path simple:
dev -> ./jeannie validate in Gitea Actions -> main -> Argo CD sync
The workflow targets a repository-scoped Debian host runner with the label
homelab-debian.
Run the same validation locally before promoting:
./jeannie validate
Identity and access audit
Run a read-only access inventory from the Debian server with:
./jeannie access-audit
The audit reports configured SSH targets and key file modes, Git/Gitea remotes, Tailscale ACL policy validation, current Kubernetes authorization, broad cluster-admin bindings, automation service accounts, and Gitea runner status. It does not create users, tokens, kubeconfigs, or keys. Use it to move toward separate identities:
- admin kubeconfig only on the Debian control host
- read-only kubeconfig for dashboards and audits
- separate service accounts for automation
- explicit SSH inventory for Debian, RPi, Pimox, and OCI edge
- repo-managed Tailscale ACLs
The read-only Kubernetes identity is managed in apps/access-control. After
that app syncs, generate a separate read-only kubeconfig on the Debian host:
./jeannie kubeconfig-readonly
The workflow only blocks automatic deploy for external Gitea service
changes: files under infra/gitea/, or edits inside the deploy_gitea,
install_gitea_backup_timer, backup_gitea, or drill_gitea_restore
functions in jeannie. Other changes use HOMELAB_ACTION_COMMAND=auto by
default: Actions runs ./jeannie doctor-versions when the Debian runner already
has a cluster kubeconfig. If node versions are aligned it runs ./jeannie apps;
if kubelet minor drift is detected it runs ./jeannie rebuild-cluster; if no
kubeconfig exists it also runs ./jeannie rebuild-cluster.
Set HOMELAB_ACTION_COMMAND=apps or HOMELAB_ACTION_COMMAND=rebuild-cluster
on the runner to force one path.
./jeannie bootstrap-gitea-repo also registers the Debian host SSH public key
with the Gitea repository and switches the Debian working copy's gitea remote
to ssh://git@192.168.100.73:32222/jv/my-homelab-configs.git. The default key
is /home/jv/.ssh/id_ed25519.pub; set LAB_GITEA_REPO_SSH_KEY_PATH to use a
different Debian-host key, or LAB_GITEA_REPO_SSH_BOOTSTRAP=false to leave SSH
access unchanged. The Actions deploy job uses the checked-out Actions workspace
as the source commit, updates the first available persistent checkout from
HOMELAB_DEPLOY_DIR, /home/jv/my-homelab-configs, or
/home/jv/repos/my-homelab-configs, and otherwise deploys directly from the
Actions workspace. It does not need SSH read access back to Gitea.
Enable Actions for the repository in Gitea, then create a repository-level runner token from:
https://lab2025.duckdns.org/git/jv/my-homelab-configs/settings/actions/runners
Register and start the Debian runner from the Debian server:
cd ~/my-homelab-configs
GITEA_RUNNER_REGISTRATION_TOKEN='<repo-runner-token>' ./jeannie install-gitea-runner
The runner is installed as homelab-gitea-runner.service, runs as user jv, and
uses a host label instead of a Docker job container because deployment needs the
Debian host's Docker, OpenTofu, kubeconfig, SSH keys, and local state.
The deployment job is non-interactive. User jv must be able to run sudo -n true on the Debian host for deployment commands that require sudo.
Useful checks:
systemctl status homelab-gitea-runner.service
journalctl -u homelab-gitea-runner.service -n 100 --no-pager
Renovate
renovate.json defines dependency update rules for Dockerfiles, OpenTofu
providers, Helm chart versions, and the pinned tools used by the Gitea Actions
workflow. Renovate should open reviewable update branches or PRs only; it must
not auto-merge infrastructure changes. Keep app-only dependency updates on the
normal Gitea Actions path, and run ./jeannie up manually on the Debian server
for platform or provisioning updates.
Website App
The website is a PHP app under apps/website. It includes a home page, CV page,
blog page, and demos page, plus a lightweight translation flow backed by Redis,
n8n, and Ollama.
Static language files live in apps/website/lang; en.php and nah.php are
curated source files, with the Nahuatl home page intentionally biased toward as
many Nahuatl words as possible while keeping technical terms understandable.
Unsupported browser languages use the same-origin /translate.php endpoint,
which calls Ollama server-side through OLLAMA_HOST and OLLAMA_MODEL; the
browser never calls the private Ollama IP directly. Redis caches per-string
translation results in the website-production namespace, while n8n is
available for translation prewarming and batch workflow jobs. The default model
is the custom website-translator Ollama model defined in
apps/website/ollama/Modelfile. Generated runtime language JSON is saved
through save_lang.php on the website PVC, and translate.php emits structured
logs for cache hits, misses, Ollama latency, JSON parse failures, and timeouts.
Create or refresh the Ollama model on the Debian server before deploying a website image that points at it:
./jeannie website-translation-model
Ollama must also listen on the Debian host LAN address so Kubernetes pods on
other nodes can reach OLLAMA_HOST=http://192.168.100.73:11434:
./jeannie website-ollama-listen
The Debian host bootstrap also manages Ollama when debian_pc_install_ollama
is true: it installs the service, stores models under /data/ollama/models,
binds the API to the configured LAN listener, and pulls the lightweight
ai_gateway.model. On an existing host, apply just this setup with:
./jeannie ollama-setup
Compact status and doctor reports can request a validated explanation with
--ai. Verbose doctors skip the older unstructured backstage helper. The
configured lightweight Ollama model is:
ollama pull qwen2.5:0.5b
For a deterministic report without a model, omit --ai:
./jeannie doctor-edge
Build the local homelab knowledge index separately from the main deployment:
./jeannie ai-index
./jeannie ai-check
./jeannie ask "how do I check edge to Gitea?"
The index is built from the non-secret source list in
infra/ai/knowledge-sources.txt, skips paths in
infra/ai/knowledge-excludes.txt, and defaults to /data/homelab-ai/index.
ask uses this index; compact doctor explanations currently use report
evidence rather than automatically adding retrieved documents. Infrastructure
deployment does not depend on the index.
Use ask as the runbook and command finder. It returns the closest indexed
docs/scripts by default; set LAB_AI_ASK_LLM=true to ask Ollama after
retrieval.
The CV page has two client-side presentation modes:
Elegant: dark, minimal, terminal-inspired styling with a square profile image and light green console text.Fancy: centered circular profile image, cursive orbit text, and a cursor-following portrait rotation effect.
The Demos page is a catalog in the PHP website. The actual demo applications are
served from a separate demos-static artifact under apps/demos-static and are
published through the demos-static Argo CD application. Public traffic reaches
them through the edge path at /demo-apps/.
./jeannie up builds and pushes two independent images:
- a content-hash
php-websitetag generated byjeannieand passed to Argo CD as a Kustomize image override demos-static:latestfromapps/demos-static- Cosign signatures and signed SPDX SBOM attestations for both pushed images
The website manifest keeps the stable base image name php-website:bootstrap.
During bootstrap, jeannie hashes apps/website, builds
<registry>/php-website:src-<hash>, exports that exact reference through
TF_VAR_website_image_ref, and the Argo CD Application applies it through
Kustomize. This keeps the GitOps source generic while the deployed image remains
immutable. The Kyverno supply-chain policy mutates admitted pods to the verified
image digest, so the workload runs the same digest that was signed and attested.
After ./jeannie apps, the live deployment image should be a content-hash tag,
for example 192.168.100.73:30500/php-website:src-.... If it still shows
php-website:latest, Argo CD has not rendered the current Application source.
Check the website-production Application source, sync status, and repository
access before restarting pods.
The first demo, The Client-Side Media Cruncher (Wasm + TS), currently performs
private, browser-only image compression and conversion using native Canvas APIs.
Heavier video conversion, such as MP4 to WebM, should use a Rust core compiled
to WebAssembly with a TypeScript UI so the codec work stays fast and still
avoids backend uploads.
The demos are designed to be local-first so the current cluster can serve them
from any Linux app node without turning either pod into an application server.
The website pod serves the portfolio shell and the demos-static pod serves
static demo bundles; CPU-heavy work runs in the visitor's browser. Because the
deployments can run on either Debian or ARM workers, avoid bundling large ML
models, server-side WebSocket probes, or backend video transcoders into either
image. If those demos become production-grade, lazy load model assets in the
browser or move backend workers to a larger node, such as VMs on the Orange Pi 5
Plus.
Current demo inventory:
- Client-side media cruncher: image conversion/compression with Canvas; future Rust/Wasm codec path for video.
- Internet quality visualizer: live Canvas graph for latency, jitter, and stability using same-origin browser probes; a dedicated WebSocket echo endpoint would be the production version.
- Local log and JSON toolbelt: JSON formatting, JWT decoding, URL parsing, and local text-log filtering.
- Architecture simulator: click-driven load, crash, and auto-scale simulation.
- Offline traveler converter: PWA shell with timezone, currency, and GB/GiB conversions.
- Privacy-first redactor: local image redaction prototype; future onnxruntime-web plus quantized YOLO or face model path.
- Local sentiment sandbox: lightweight local sentiment, keyword, and summary prototype; future Transformers.js/ONNX path.
- Model drift simulator: visual MLOps playground for spikes, corrupted inputs, and retraining.
The Kubernetes deployment uses apps/website/web-app.yaml as a Kustomize base.
Keep TF_VAR_registry_endpoint aligned with the local registry endpoint used by
the app image build and with the image globs in
apps/supply-chain-policy/local-registry-image-policy.yaml.
Keep the .terraform.lock.hcl files committed. They pin provider selections and
make bootstrap behavior reproducible across nodes and rebuilds.