Freya Kubernetes operator — CRDs and controllers for DataKnifeAI Freya Studio and diffusion workers. Reconciles FreyaStudio, FreyaDiffusionWorker, and FreyaModelAsset into Deployments, Services, Ingress, Secrets, and related objects. This repo builds Harbor image library/freya-operator.
Meta compose/pins, stack docs, and the FOO-48 compat/channel scaffold live in freya-web (deploy/compose/, docs/stack/, channels/). Component images live in their own repos; the operator pins them via CR fields (and built-in defaults).
- Rust
freya-operatorbinary (kube-rs controllers) +freya-crdgenfor CRD YAML - Shared CRD types crate
freya-crd(freya.dataknife.ai/v1alpha1) - Install manifests under
config/(kustomize: CRDs, RBAC, manager Deployment)
Studio and worker specs take explicit image refs. When omitted, the operator defaults to Harbor 0.1.0 tags:
| Component | Harbor name | Default repository | Default tag | Pin field |
|---|---|---|---|---|
| API | library/freya-api |
harbor.dataknife.net/library/freya-api |
0.1.0 |
FreyaStudio.spec.apiImage |
| UI | library/freya-web |
harbor.dataknife.net/library/freya-web |
0.1.0 |
FreyaStudio.spec.uiImage |
| MCP | library/freya-mcp |
harbor.dataknife.net/library/freya-mcp |
0.1.0 |
FreyaStudio.spec.mcpImage |
| Worker | library/freya-diffusion-worker |
harbor.dataknife.net/library/freya-diffusion-worker |
0.1.0 |
FreyaDiffusionWorker.spec.image |
| Operator | library/freya-operator |
harbor.dataknife.net/library/freya-operator |
(Deployment) | config/manager/deployment.yaml |
Sister product repos: freya-api, freya-web, freya-mcp, freya-worker.
Compat: pin per-component tags in CRs; treat as ^0.1 aligned until the FOO-48 matrix is published from freya-web channels/.
cargo build --release -p freya-operator
# optional CRD regenerate:
# cargo run --release -p freya-operator --bin freya-crdgen > config/crd/freya.dataknife.ai_crds.yaml# CRDs + RBAC + operator Deployment (namespace freya-system)
kubectl apply -k config/default
# Sample Studio + worker CRs (edit secrets / hosts first)
kubectl apply -f config/samples/freya_v1alpha1_freyastudio.yaml
kubectl apply -f config/samples/freya_v1alpha1_freyadiffusionworker_external.yamlManager image in config/manager/deployment.yaml:
harbor.dataknife.net/library/freya-operator:0.1.0
docker build -t freya-operator:local .
# Publish as library/freya-operator:<tag> to Harbor; patch the manager Deployment tag.Published image name: library/freya-operator (Harbor).
| Path | Purpose |
|---|---|
crates/freya-operator/ |
Controller binaries (freya-operator, freya-crdgen) |
crates/freya-crd/ |
CRD Rust types |
config/ |
CRD YAML, RBAC, manager, samples (kustomize) |
Dockerfile |
Harbor image (distroless nonroot) |
docs/hero.jpg |
Brand-first README hero |
Freya is a tool: you supply keys and hardware, and you are liable for prompts and outputs. Third-party terms (OpenRouter, Civitai, Hugging Face, model licenses) still apply.
Apache License 2.0 — see LICENSE.
