-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
59 lines (49 loc) · 1.39 KB
/
Copy pathconfig.example.yaml
File metadata and controls
59 lines (49 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# SwarmCracker Configuration Example
# Copy this to /etc/swarmcracker/config.yaml and customize
# Schema version: 1 (current)
version: 1
executor:
name: firecracker
kernel_path: "/usr/share/firecracker/vmlinux"
initrd_path: ""
rootfs_dir: "/var/lib/firecracker/rootfs"
socket_dir: "/var/run/firecracker"
default_vcpus: 1
default_memory_mb: 512
enable_jailer: false
# Init system for proper process lifecycle management
# Options: "none", "tini" (default, recommended), "dumb-init"
init_system: "tini"
# Grace period in seconds before SIGKILL during shutdown
init_grace_period: 10
jailer:
uid: 1000
gid: 1000
chroot_base_dir: "/srv/jailer"
netns: ""
network:
# Bridge device name on host
bridge_name: "swarm-br0"
# Subnet for VM network (CIDR notation)
subnet: "192.168.127.0/24"
# Bridge IP address (CIDR notation) - gateway for VMs
bridge_ip: "192.168.127.1/24"
# IP allocation mode: "static" (deterministic) or "dhcp" (requires external DHCP)
ip_mode: "static"
# Enable NAT/masquerading for internet access
nat_enabled: true
# Rate limiting (optional)
enable_rate_limit: false
max_packets_per_sec: 10000
logging:
level: "info"
format: "text"
output: "stdout"
images:
cache_dir: "/var/cache/swarmcracker"
max_cache_size_mb: 1024
enable_layer_cache: true
metrics:
enabled: false
address: "localhost:9090"
format: "prometheus"