Terraform module which creates CIVO Kubernetes cluster and supporting infrastructure.
module "civo_k8s" {
source = "shipwright-sh/terraform-civo-k8s"
version = "0.1"
cluster_name = "my-cluster"
region = "LON1"
cluster_node_count = 3
cluster_node_size = "g4s.kube.medium"
ingress_rule = [
{
label = "k8s"
protocol = "tcp"
port_range = "6443-6443"
cidr = ["0.0.0.0/32"]
action = "allow"
}
]
egress_rule = [
{
label = "all"
protocol = "tcp"
port_range = "1-65535"
cidr = ["0.0.0.0/0"]
action = "allow"
}
]
}
Name | Version |
---|---|
terraform | >= 0.13 |
civo | >= 1.0.18 |
Name | Version |
---|---|
civo | >= 1.0.18 |
No modules.
Name | Type |
---|---|
civo_firewall.firewall | resource |
civo_kubernetes_cluster.cluster | resource |
civo_network.network | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
cluster_name | Name of the kubernetes cluster | string |
n/a | yes |
cluster_node_count | The size of the nodes to provision. Run civo size list for all options |
number |
3 |
no |
cluster_node_size | Instance type of the target nodes, choose from g3.k3s.xsmall , g3.k3s.small , g3.k3s.medium , g3.k3s.large , g3.k3s.xlarge , g3.k3s.2xlarge |
string |
"g3.k3s.medium" |
no |
cni | CNI Plugin, available options: flannel, cilium | string |
"cilium" |
no |
create_default_rules | Create default firewall rules | bool |
false |
no |
egress_rule | Firewall egress rule | list(object({ |
n/a | yes |
ingress_rule | Firewall ingress rule | list(object({ |
n/a | yes |
kubernetes_version | Supported version of the k3s cluster | string |
"" |
no |
network_name | Name of the network | string |
"" |
no |
node_label | Node pool label | string |
"" |
no |
region | The region to provision the cluster against | string |
"LON1" |
no |
tags | Space separated list of tags | string |
"" |
no |
Name | Description |
---|---|
api_endpoint | The API server endpoint of the cluster |
cluster_id | The ID of the cluster |
kubeconfig | The kubeconfig of the cluster |
master_ip | The IP address of the master node |
We are greatful to the community for contributiong bugfixes and inprovements. Use these templates to raise bug reports and feature requests.