mirror of
				https://github.com/optim-enterprises-bv/terraform-talos.git
				synced 2025-10-31 02:08:32 +00:00 
			
		
		
		
	OracleCloud
- Upload the talos image to the cloud
- Create networks
- Launch the loadbalancer
- Launch the controlplane
- Scale the cluster
Create compartment (optional)
First you need to prepare your compartment:
cd init
terraform init
terraform apply
It creats:
- compartment
- terraform account
- resources tags
- identity policy for terraform and CCM
Upload images
cd images
# fixme, url does not exist yet
wget https://$url -O oracle-amd64.qcow2
wget https://$url -O oracle-arm64.qcow2
terraform init
terraform apply
Create networks
- creates networks by zones and for zonal loadbalancer
- creates NAT for private networks
- creates security group and security list
make create-network
Launch the cluster
Create the loadbalancer
make create-lb
Generate Talos configs
make create-config create-templates
- Check file terraform.tfvars.json
- Create the terraform.tfvarslike this
controlplane = {
  count = 1
  type  = "VM.Standard.E4.Flex"
  ocpus = 1
  memgb = 4
}
instances = {
  "jNdv:eu-amsterdam-1-AD-1" = {
    web_count             = 1,
    web_instance_shape    = "VM.Standard.E2.1.Micro",
    web_instance_ocpus    = 1,
    web_instance_memgb    = 1,
    worker_count          = 1,
    worker_instance_shape = "VM.Standard.E2.1.Micro",
    worker_instance_ocpus = 1,
    worker_instance_memgb = 1,
  },
}
Bootstrap cluster
terraform apply
