christianlempa-boilerplates/terraform/civo/kubernetes.tf

24 lines
801 B
Terraform
Raw Normal View History

2022-03-04 17:38:14 +01:00
# CIVO Kubernetes
# ---
# Templates to create a Kubernetes Cluster on CIVO
# Create a new Kubernetes Cluster
resource "civo_kubernetes_cluster" "your-kubernetes-cluster" {
2024-01-12 10:50:17 +01:00
name = "your-kubernetes-cluster"
applications = ""
firewall_id = civo_firewall.your_firewall.id
network_id = civo_network.your_network.id
pools {
size = element(data.civo_size.k8s_std_small.sizes, 0).name
node_count = 3
}
# (Optional) add depenencies on other resources
depends_on = [ civo_firewall.your_firewall, civo_network.your_network ]
2022-03-04 17:38:14 +01:00
}
# (Optional) Time Sleep elements for other Objects that need to wait a few seconds after the Cluster deployment
2024-01-12 10:50:17 +01:00
# resource "time_sleep" "wait_for_kubernetes" {
# depends_on = [civo_kubernetes_cluster.your-kubernetes-cluster]
# create_duration = "20s"
# }