mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-07 14:03:01 +07:00
Add network
This commit is contained in:
parent
47ed8f481d
commit
d9cddb31f0
@ -1,10 +1,21 @@
|
|||||||
provider "lxd" {
|
provider "lxd" {
|
||||||
|
generate_client_certificates = true
|
||||||
|
accept_remote_certificate = true
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "lxd_network" "kubernetes_subnetwork" {
|
||||||
|
name = "kubernetes"
|
||||||
|
|
||||||
|
config = {
|
||||||
|
"ipv4.address" = "10.150.19.1/24"
|
||||||
|
"ipv4.nat" = "true"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "lxd_container" "test1" {
|
resource "lxd_container" "test1" {
|
||||||
name = "test1"
|
count = 3
|
||||||
remote = "images"
|
name = "test-${count.index}"
|
||||||
image = "ubuntu/18.04"
|
image = "images:ubuntu/18.04"
|
||||||
ephemeral = false
|
ephemeral = false
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
Loading…
Reference in New Issue
Block a user