github.com/verrazzano/verrazzano@v1.7.1/tests/e2e/config/scripts/terraform/cluster/main.tf (about)

     1  # Copyright (c) 2020, 2022, Oracle and/or its affiliates.
     2  # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  module "oke" {
     5    source = "oracle-terraform-modules/oke/oci"
     6    version = "3.3.0"
     7  
     8    tenancy_id = var.tenancy_id
     9    user_id = var.user_id
    10    region = var.region
    11    api_fingerprint = var.api_fingerprint
    12    api_private_key_path =var.api_private_key_path
    13  
    14    cluster_name = var.cluster_name
    15    compartment_id = var.compartment_id
    16    kubernetes_version = var.kubernetes_version
    17    allow_worker_ssh_access = var.allow_worker_ssh_access
    18    worker_mode = var.worker_mode
    19    cluster_access = var.cluster_access
    20    ssh_private_key_path = var.ssh_private_key_path
    21    ssh_public_key_path = var.ssh_public_key_path
    22    node_pools =var.node_pools
    23    allow_node_port_access = var.allow_node_port_access
    24    operator_enabled = var.operator_enabled
    25    bastion_enabled = var.bastion_enabled
    26    username = var.username
    27  
    28    calico_enabled = var.calico_enabled
    29    calico_version = var.calico_version
    30  
    31    vcn_name = "${var.cluster_name}-vcn"
    32    vcn_dns_label = var.cluster_name
    33    label_prefix = var.label_prefix
    34  
    35    operator_shape = { shape="VM.Standard.E3.Flex", ocpus=1, memory=4, boot_volume_size=50 }
    36    operator_notification_endpoint = ""
    37    operator_instance_principal = false
    38    operator_notification_enabled = false
    39    operator_timezone = "UTC"
    40  
    41    bastion_shape = { shape="VM.Standard.E3.Flex", ocpus=1, memory=4, boot_volume_size=50 }
    42    bastion_timezone = "UTC"
    43    bastion_notification_enabled = false
    44    bastion_notification_endpoint = ""
    45  
    46    email_address = ""
    47  
    48    create_service_account = false
    49    service_account_cluster_role_binding = ""
    50  
    51    existing_key_id = ""
    52  
    53    use_signed_images = false
    54    image_signing_keys = []
    55  
    56    node_pool_image_id = var.node_pool_image_id
    57  }
    58  
    59  output "oke_cluster_id" {
    60    value = module.oke.cluster_id
    61  }