Files
terraform-talos/oracle
2022-01-19 20:55:47 +02:00
..
2021-12-25 22:10:04 +02:00
2021-12-23 09:34:44 +02:00
2022-01-06 22:59:01 +02:00
2022-01-04 00:12:06 +02:00
2021-12-14 20:38:20 +02:00
2022-01-06 22:59:01 +02:00
2021-12-18 21:40:27 +02:00
2021-12-19 14:14:54 +02:00
2021-12-18 21:40:27 +02:00
2022-01-04 00:12:06 +02:00
2022-01-04 00:12:06 +02:00
2021-12-25 22:10:04 +02:00
2021-12-21 22:29:44 +02:00
2022-01-04 00:12:06 +02:00
2022-01-04 00:12:06 +02:00
2021-12-18 21:40:27 +02:00
2022-01-19 20:55:47 +02:00
2022-01-04 00:12:06 +02:00
2021-12-15 23:14:57 +02:00

OracleCloud

  1. Upload the talos image to the cloud
  2. Create networks (loadbalancer + controlplane)

Create compartment

This is optional stage.

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.tfvars like 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