mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 21:11:52 +07:00
Add worker nodes
This commit is contained in:
parent
d9cddb31f0
commit
1b2082e91c
@ -12,9 +12,24 @@ resource "lxd_network" "kubernetes_subnetwork" {
|
||||
}
|
||||
}
|
||||
|
||||
resource "lxd_container" "test1" {
|
||||
resource "lxd_container" "kubernetes_controllers" {
|
||||
count = 3
|
||||
name = "test-${count.index}"
|
||||
name = "controller-${count.index}"
|
||||
image = "images:ubuntu/18.04"
|
||||
ephemeral = false
|
||||
|
||||
config = {
|
||||
"boot.autostart" = true
|
||||
}
|
||||
|
||||
limits = {
|
||||
cpu = 2
|
||||
}
|
||||
}
|
||||
|
||||
resource "lxd_container" "kubernetes_workers" {
|
||||
count = 3
|
||||
name = "worker-${count.index}"
|
||||
image = "images:ubuntu/18.04"
|
||||
ephemeral = false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user