Files
2026-01-01 22:38:08 +08:00

53 lines
1.3 KiB
Plaintext

# Global Registry (optional)
# GLOBAL_REGISTRY=registry.example.com/
# K3s Version
# Version of K3s to install
K3S_VERSION=v1.28.2+k3s1
# K3s DinD Image Version
# Built image version tag
K3S_DIND_VERSION=0.2.2
# Multi-platform Build Support
# This image supports building for multiple platforms: linux/amd64, linux/arm64
# Build for current platform: docker compose build
# Build multi-platform: docker buildx build --platform linux/amd64,linux/arm64 -t IMAGE_NAME --push .
# Preload Images
# Whether to pre-download common images during build (true/false)
# Set to false to speed up build time if you have good internet connectivity
PRELOAD_IMAGES=true
# Timezone
# Set the timezone for the container
TZ=UTC
# Kubernetes API Server Port
# Default: 6443
K3S_API_PORT_OVERRIDE=6443
# Docker TLS Port
# Default: 2376
DOCKER_TLS_PORT_OVERRIDE=2376
# K3s Token (optional)
# Shared secret token for cluster join
# K3S_TOKEN=
# K3s Disable Services
# Comma-separated list of services to disable
# Default: traefik
K3S_DISABLE_SERVICES=traefik
# Resource Limits
# CPU limit (cores)
K3S_DIND_CPU_LIMIT=2.00
# Memory limit
K3S_DIND_MEMORY_LIMIT=4G
# Resource Reservations
# CPU reservation (cores)
K3S_DIND_CPU_RESERVATION=0.50
# Memory reservation
K3S_DIND_MEMORY_RESERVATION=1G