stack

package
v0.9.31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DownCmd = &cobra.Command{
	Use:   "down",
	Short: "Stop and remove the stack",
	Long: `Stop all stack services and remove the Kubernetes cluster.

This command:
1. Uninstalls Helm releases
2. Deletes the K8s cluster
3. Cleans up state files

Example:
  weave stack down`,
	RunE: runDown,
}

DownCmd represents the stack down command

View Source
var InitCmd = &cobra.Command{
	Use:   "init",
	Short: "Initialize a new weave stack",
	Long: `Initialize a new weave stack by generating weave-stack.yaml.

This command creates a new stack configuration file with sensible defaults
for your chosen runtime environment (Kind, Minikube, EKS, GKE).

Templates:
  quickstart  - Minimal stack (1 collection, Milvus, local K8s)
  production  - Full stack (collections, evals, dashboard)
  multimodal  - Text + image collections
  oss         - Ollama + sentence-transformers (no API keys)

Examples:
  # Initialize with quickstart template for Kind
  weave stack init --template quickstart --runtime kind

  # Initialize for AWS EKS production
  weave stack init --template production --runtime eks

  # Initialize with defaults (quickstart + kind)
  weave stack init`,
	RunE: runInit,
}

InitCmd represents the stack init command

View Source
var StatusCmd = &cobra.Command{
	Use:   "status",
	Short: "Show stack status",
	Long: `Show the status of the stack and its components.

Example:
  weave stack status`,
	RunE: runStatus,
}

StatusCmd represents the stack status command

View Source
var UpCmd = &cobra.Command{
	Use:   "up",
	Short: "Deploy the stack to Kubernetes",
	Long: `Deploy the complete RAG stack to Kubernetes.

This command:
1. Creates a K8s cluster (if needed)
2. Generates Helm charts from weave-stack.yaml
3. Deploys infrastructure (VectorDB, etc.)
4. Waits for services to be ready

Example:
  weave stack up --runtime kind
  weave stack up --runtime minikube
  weave stack up --skip-cluster-creation  # Use existing cluster`,
	RunE: runUp,
}

UpCmd represents the stack up command

View Source
var ValidateCmd = &cobra.Command{
	Use:   "validate",
	Short: "Validate weave-stack.yaml configuration",
	Long: `Validate weave-stack.yaml for correctness.

This command checks:
- YAML syntax
- Required fields
- Valid values for runtime, vectordb type, etc.
- Resource specifications
- Collection schemas

Example:
  weave stack validate`,
	RunE: runValidate,
}

ValidateCmd represents the stack validate command

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL