feat: add k3s-inside-dind

This commit is contained in:
Sun-ZhenXing
2025-12-25 17:54:03 +08:00
parent 1b34b74851
commit fe37a25c41
10 changed files with 559 additions and 13 deletions

View File

@@ -0,0 +1,43 @@
# 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.1.0
# 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