2025-10-07 11:12:02 +01:00

1.2 KiB

Minimal Infrastructure Template

This is a minimal infrastructure template with a basic server configuration.

What's Included

  • Single server definition - Basic example to customize
  • Minimal settings - Essential configuration only
  • No pre-configured modules - Load what you need

Quick Start

1. Load Required Modules

cd infra/<your-infra-name>

# Load a provider
provisioning mod load providers . upcloud

# Load taskservs as needed
provisioning mod load taskservs . containerd

2. Customize Configuration

Edit servers.k:

  • Change server hostname and title
  • Configure network settings
  • Add provider-specific settings (plan, storage, etc.)
  • Add taskservs when ready

3. Deploy

# Test configuration
kcl run servers.k

# Dry-run deployment
provisioning s create --infra <name> --check

# Deploy
provisioning s create --infra <name>

Next Steps

  • Add more servers to the example_servers array
  • Configure taskservs for your servers
  • Set up monitoring and backup
  • Configure firewall rules

Template Characteristics

  • Complexity: Low
  • Servers: 1 basic example
  • Pre-configured modules: None
  • Best for: Learning, simple deployments, custom configurations