mirror of
https://github.com/vcscsvcscs/OCI-Kubernetes-cluster-with-traefik.git
synced 2025-08-13 14:29:06 +02:00
add half done self managed version
This commit is contained in:
37
self-managed/k3s-servers.tf
Normal file
37
self-managed/k3s-servers.tf
Normal file
@@ -0,0 +1,37 @@
|
||||
resource "oci_core_instance_pool" "k3s_servers" {
|
||||
depends_on = [
|
||||
oci_identity_dynamic_group.compute_dynamic_group,
|
||||
oci_identity_policy.compute_dynamic_group_policy
|
||||
]
|
||||
|
||||
timeouts {
|
||||
create = "11m"
|
||||
update = "11m"
|
||||
delete = "10m"
|
||||
}
|
||||
|
||||
lifecycle {
|
||||
create_before_destroy = true
|
||||
ignore_changes = [load_balancers, freeform_tags, instance_configuration_id]
|
||||
}
|
||||
|
||||
display_name = "k3s-servers"
|
||||
compartment_id = var.compartment_ocid
|
||||
instance_configuration_id = oci_core_instance_configuration.k3s_server_template.id
|
||||
|
||||
placement_configurations {
|
||||
availability_domain = var.availability_domain
|
||||
primary_subnet_id = oci_core_subnet.default_oci_core_subnet10.id
|
||||
fault_domains = var.fault_domains
|
||||
}
|
||||
|
||||
size = var.k3s_server_pool_size
|
||||
|
||||
freeform_tags = {
|
||||
"provisioner" = "terraform"
|
||||
"environment" = "${var.environment}"
|
||||
"${var.unique_tag_key}" = "${var.unique_tag_value}"
|
||||
"k3s-cluster-name" = "${var.cluster_name}"
|
||||
"k3s-instance-type" = "k3s-server"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user