sceptre

by MaponyaCL

Helm chartv0.1.12App 0.1.12

Portable local-Kubernetes distribution of the Sceptre tabular AutoML platform

About this chart

Sceptre Helm chart

This chart is the primary Kubernetes distribution for the complete Sceptre application. It uses standard Kubernetes APIs and has no runtime dependency on Minikube, kind, k3d, MicroK8s, Docker Desktop, or any cluster-specific CLI.

What one Helm release installs

  • PostgreSQL and durable metadata storage, or an external database connection
  • SeaweedFS and durable dataset/model storage, or an external S3-compatible endpoint
  • MLflow and durable artifacts, or an external tracking server
  • Idempotent database bootstrap and Alembic migration Jobs
  • FastAPI and React/Nginx Deployments and ClusterIP Services
  • Namespace-scoped RBAC for Jobs, pod status/logs, inference workloads, quotas, metrics, and optional ingresses
  • CPU-first training configuration and a generic inference runtime

Metrics Server, storage provisioners, ingress controllers, GPU device plugins, and cluster creation remain cluster-owner responsibilities. Their absence does not block CPU training or normal UI/API operation.

The centralized model-metrics API can scale independently when Metrics Server is available:

api:
  autoscaling:
    enabled: true
    minReplicas: 2
    maxReplicas: 8

Deployment monitoring policies also select small, standard, large, or xlarge resource floors for drift Jobs. The admission check rejects a selected class when the cluster cannot satisfy its CPU or memory request. HPA applies to the long-running API; bounded drift computations remain Kubernetes Jobs.

Prerequisites

  • Kubernetes 1.27+ API compatibility; use a currently supported upstream minor
  • Helm 3 or 4
  • A default dynamic StorageClass, unless storage classes are set explicitly
  • Internet access to the public maponyacharles/sceptreai Docker Hub repository

The default release needs roughly 2 CPU cores, 3 GiB RAM, and 25 GiB of provisionable storage before training workloads are considered.

Published application images

The chart pulls eight pinned linux/amd64 images from one public repository:

  • maponyacharles/sceptreai:api-<version>
  • maponyacharles/sceptreai:ui-<version>
  • maponyacharles/sceptreai:mlflow-<version>
  • maponyacharles/sceptreai:postgresql-<version>
  • maponyacharles/sceptreai:seaweedfs-<version>
  • maponyacharles/sceptreai:training-cpu-<version>
  • maponyacharles/sceptreai:training-intel-<version>
  • maponyacharles/sceptreai:inference-<version>

NVIDIA training remains an optional bring-your-own image profile; override training.nvidia.image.repository and training.nvidia.image.tag before enabling it.

No local image build, import, or registry is needed. Override global.imageRegistry, component repositories, tags, digests, or global.imagePullSecrets only when installing from another registry. Complete Windows and Linux beginner walkthroughs are in the repository's main README.

Install

Install the published chart without cloning the source repository:

helm upgrade --install sceptre oci://registry-1.docker.io/maponyacharles/sceptre \
  --version <version> \
  --namespace sceptre \
  --create-namespace \
  --set environment=local \
  --wait --wait-for-jobs --timeout 15m

Provide secure credentials through a private values file or existing Secrets; the defaults are only suitable for a local evaluation. Contributors can replace the OCI URL with infra/helm/sceptre and use the included cluster profiles when testing chart changes from a source checkout.

Check the installation:

kubectl -n sceptre get pods,jobs,pvc
helm test sceptre -n sceptre
kubectl -n sceptre port-forward service/sceptre-ui 8080:80

Open http://127.0.0.1:8080. API requests are proxied through the UI service. If ingress.enabled=true, use the configured host instead.

GPU profiles

The chart does not install device plugins. After the cluster owner installs one:

# NVIDIA device plugin exposing nvidia.com/gpu
helm upgrade --install sceptre infra/helm/sceptre -n sceptre \
  -f infra/helm/sceptre/values-local.yaml \
  -f infra/helm/sceptre/values-nvidia.yaml

# Intel device plugin; override training.intel.resourceKey if necessary
helm upgrade --install sceptre infra/helm/sceptre -n sceptre \
  -f infra/helm/sceptre/values-local.yaml \
  -f infra/helm/sceptre/values-intel.yaml

GPU profiles enable a separate, read-only ClusterRole used only to discover node extended resources. Training still uses standard resource requests and lets the Kubernetes scheduler select a node. If observation is forbidden or the resource is absent, the API reports a warning and uses the CPU image.

Storage and external services

PostgreSQL, SeaweedFS, and MLflow PVCs use the cluster's default StorageClass unless storageClass is set. Their default retainOnDelete=true annotations preserve data during helm uninstall.

The training cache defaults to per-pod emptyDir; object storage remains the source of truth. Enable training.cache.mode=shared-pvc only when the selected StorageClass and access mode work across the cluster (usually RWX).

Set postgresql.enabled=false, seaweedfs.enabled=false, or mlflow.enabled=false to use external services. Prefer platform.existingSecret, externalObjectStore.existingSecret, and auth.existingSecret rather than putting credentials in values files. Required secret key names are documented in values.yaml. examples/values-external.yaml shows the full external-service shape without embedding credentials. examples/values-capabilities.yaml exercises ingress, per-model ingress, an RWX cache, PriorityClass, ResourceQuota, and LimitRange on clusters that provide those capabilities.

Upgrading from the bundled MinIO service

SeaweedFS uses a different on-disk format, so the chart deliberately creates a new sceptre-seaweedfs PVC and leaves any retained sceptre-minio PVC untouched. Before upgrading an installation that contains data, copy every object from MinIO to an external S3-compatible bucket or to the new SeaweedFS endpoint, verify object counts and checksums, and only then retire the old PVC. The application continues to accept existing minio:// artifact URIs; that scheme is retained as a compatibility identifier and does not require a MinIO server.

Exposure

The UI and API use ClusterIP Services by default. Port-forward is the universal local fallback. Enabling ingress exposes the UI, which also proxies /api.

One-click model deployment creates a ClusterIP Service first. The Sceptre API provides an authenticated gateway from the existing application host to every ready model, so users do not need to expose or port-forward each model Service. The Operations UI reports project-scoped routes shaped as:

/api/v1/projects/<project-id>/operations/deployments/<deployment-run-id>/inference/<model-route>

Supported model routes are v1/predict, v1/predict/online, v1/predict/offline, v1/metadata, openapi.json, docs, health/live, and health/ready. Every gateway request requires a Sceptre Bearer token and viewer access to the project.

A configured LoadBalancer, NodePort host, or per-model Ingress can still expose a model directly. Per-model ingress hosts support {name} and {deployment_id} templates. Direct exposure bypasses the project-authenticated Sceptre gateway; the cluster operator is therefore responsible for TLS, authentication, and network policy at that edge.

An operator may still run kubectl port-forward against a model Service for troubleshooting. That temporary direct connection bypasses project membership and is not the normal user-access path.

Optional controls

  • resourceQuota and limitRange can create namespace guardrails.
  • training.priorityClass.enabled creates an optional non-preempting class.
  • capabilities.clusterObserver.enabled grants read-only node/PriorityClass observation. It is off by default.
  • Metrics Server is optional. Without it, live CPU/RAM telemetry is marked unavailable while training status and logs continue to work.

Upgrade and uninstall

Each install/upgrade creates a revision-specific migration Job. API pods wait for the database to reach the Alembic head and for every application table to exist before serving traffic. On a new bundled PostgreSQL volume, the chart creates the automl and mlflow databases, applies the initial 13-table application schema, and lets MLflow initialize or upgrade its own tables. External PostgreSQL must provide the databases and a user allowed to create and alter tables; the chart still applies the application migrations.

helm upgrade sceptre infra/helm/sceptre -n sceptre -f <your-values.yaml> \
  --wait --wait-for-jobs
helm uninstall sceptre -n sceptre

With default retention, explicitly delete PVCs only when data loss is intended:

kubectl -n sceptre delete pvc \
  sceptre-postgresql sceptre-seaweedfs sceptre-mlflow

Chart regression checks

version="$(sed -n 's/^version = "\([^"]*\)"/\1/p' pyproject.toml)"
helm package infra/helm/sceptre --destination /tmp \
  --version "$version" --app-version "$version"
chart="/tmp/sceptre-${version}.tgz"
helm lint "$chart"
for profile in infra/helm/sceptre/values*.yaml; do
  helm template sceptre "$chart" -n sceptre -f "$profile" >/dev/null
done

Deploy sceptre with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has sceptre on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartsceptre is pinned at v0.1.12 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply