Terraform module to provision infrastructure used to create free Kubernetes cluster in Oracle Cloud
- Install tools:
- Authenticate to Oracle Cloud:
oci session authenticate --region eu-frankfurt-1 --profile-name k8s-oci
Token can be later refreshed by command:
oci session refresh --profile k8s-oci
- Initialize Terraform:
cd examples/basic
terraform init
- Prepare file with variables values:
cp example.tfvars terraform.tfvars
vi terraform.tfvars
- Apply code for infrastructure:
terraform apply
Name | Version |
---|---|
terraform | >= 1.3.0 |
oci | ~> 6.17.0 |
Name | Version |
---|---|
oci | ~> 6.17.0 |
No modules.
Name | Description | Type | Default | Required |
---|---|---|---|---|
availability_domains | Availability domains in which instances are going to be created | list(number) |
[ |
no |
compartment_id | Compartment ID | string |
n/a | yes |
egress_security_rules | Egress security rules | list(map(string)) |
[] |
no |
id_rsa_pub | SSH public key | string |
n/a | yes |
ingress_security_rules | Ingress security rules | list(map(string)) |
[] |
no |
instance_count | Number of instances to create | number |
4 |
no |
instance_shape | Shape of instance | string |
"VM.Standard.A1.Flex" |
no |
my_public_ip | My public IP address | string |
n/a | yes |
subnet_cidr_block | Subnet CIDR | string |
"172.16.0.0/24" |
no |
vcn_cidr_block | VCN CIDR | string |
"172.16.0.0/20" |
no |
Name | Description |
---|---|
availability_domain | availability domain |
compute_instances | Names and IPs of created instances |
compute_instances_public_ip | Public IPs of created nodes |
lb_id | ID of LB |
lb_public_ip | Public IPs of LB |
oci_ubuntu_images | List of possible Ubuntu images |
subnet_cidr | CIDR block of the core subnet |
subnet_id | ID of the core subnet |
subnet_state | The state of the subnet |
vcn_cidr | CIDR block of the core VCN |
vcn_id | ID of the core VCN |
vcn_state | the state of the VCN |
MIT Licensed. See LICENSE.