Skip to content

About

Freya Kubernetes operator — CRDs and controllers for Freya Studio/Worker

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Freya Operator

Freya Operator

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).

What it is

  • Rust freya-operator binary (kube-rs controllers) + freya-crdgen for CRD YAML
  • Shared CRD types crate freya-crd (freya.dataknife.ai/v1alpha1)
  • Install manifests under config/ (kustomize: CRDs, RBAC, manager Deployment)

Image pins (api / ui / mcp / worker)

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/.

Install / run

Build

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

Apply to a cluster

# 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.yaml

Manager image in config/manager/deployment.yaml:

harbor.dataknife.net/library/freya-operator:0.1.0

Docker / Harbor

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).

Layout

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

Guidelines

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.

License

Apache License 2.0 — see LICENSE.

About

Freya Kubernetes operator — CRDs and controllers for Freya Studio/Worker

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages