|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "gcore_k8s Resource - terraform-provider-gcorelabs" |
| 4 | +subcategory: "" |
| 5 | +description: |- |
| 6 | + Represent k8s cluster with one default pool. |
| 7 | +--- |
| 8 | + |
| 9 | +# gcore_k8s (Resource) |
| 10 | + |
| 11 | +Represent k8s cluster with one default pool. |
| 12 | + |
| 13 | +## Example Usage |
| 14 | + |
| 15 | +```terraform |
| 16 | +provider gcore { |
| 17 | + user_name = "test" |
| 18 | + password = "test" |
| 19 | + gcore_platform = "https://api.gcdn.co" |
| 20 | + gcore_api = "https://api.cloud.gcorelabs.com" |
| 21 | +} |
| 22 | +
|
| 23 | +resource "gcore_k8s" "v" { |
| 24 | + project_id = 1 |
| 25 | + region_id = 1 |
| 26 | + name = "tf-k8s" |
| 27 | + fixed_network = "6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25" |
| 28 | + fixed_subnet = "dc3a3ea9-86ae-47ad-a8e8-79df0ce04839" |
| 29 | + pool { |
| 30 | + name = "tf-pool" |
| 31 | + flavor_id = "g1-standard-1-2" |
| 32 | + min_node_count = 1 |
| 33 | + max_node_count = 2 |
| 34 | + node_count = 1 |
| 35 | + docker_volume_size = 2 |
| 36 | + } |
| 37 | +} |
| 38 | +``` |
| 39 | + |
| 40 | +<!-- schema generated by tfplugindocs --> |
| 41 | +## Schema |
| 42 | + |
| 43 | +### Required |
| 44 | + |
| 45 | +- **fixed_network** (String) |
| 46 | +- **fixed_subnet** (String) Subnet should has router |
| 47 | +- **name** (String) |
| 48 | +- **pool** (Block List, Min: 1, Max: 1) (see [below for nested schema](#nestedblock--pool)) |
| 49 | + |
| 50 | +### Optional |
| 51 | + |
| 52 | +- **auto_healing_enabled** (Boolean) |
| 53 | +- **id** (String) The ID of this resource. |
| 54 | +- **keypair** (String) |
| 55 | +- **last_updated** (String) |
| 56 | +- **master_lb_floating_ip_enabled** (Boolean) |
| 57 | +- **pods_ip_pool** (String) |
| 58 | +- **project_id** (Number) |
| 59 | +- **project_name** (String) |
| 60 | +- **region_id** (Number) |
| 61 | +- **region_name** (String) |
| 62 | +- **services_ip_pool** (String) |
| 63 | +- **timeouts** (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) |
| 64 | + |
| 65 | +### Read-Only |
| 66 | + |
| 67 | +- **api_address** (String) |
| 68 | +- **cluster_template_id** (String) |
| 69 | +- **container_version** (String) |
| 70 | +- **created_at** (String) |
| 71 | +- **discovery_url** (String) |
| 72 | +- **faults** (Map of String) |
| 73 | +- **health_status** (String) |
| 74 | +- **health_status_reason** (Map of String) |
| 75 | +- **master_addresses** (List of String) |
| 76 | +- **master_flavor_id** (String) |
| 77 | +- **node_addresses** (List of String) |
| 78 | +- **node_count** (Number) |
| 79 | +- **status** (String) |
| 80 | +- **status_reason** (String) |
| 81 | +- **updated_at** (String) |
| 82 | +- **user_id** (String) |
| 83 | +- **version** (String) |
| 84 | + |
| 85 | +<a id="nestedblock--pool"></a> |
| 86 | +### Nested Schema for `pool` |
| 87 | + |
| 88 | +Required: |
| 89 | + |
| 90 | +- **flavor_id** (String) |
| 91 | +- **max_node_count** (Number) |
| 92 | +- **min_node_count** (Number) |
| 93 | +- **name** (String) |
| 94 | +- **node_count** (Number) |
| 95 | + |
| 96 | +Optional: |
| 97 | + |
| 98 | +- **docker_volume_size** (Number) |
| 99 | +- **docker_volume_type** (String) Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'. |
| 100 | + |
| 101 | +Read-Only: |
| 102 | + |
| 103 | +- **created_at** (String) |
| 104 | +- **stack_id** (String) |
| 105 | +- **uuid** (String) |
| 106 | + |
| 107 | + |
| 108 | +<a id="nestedblock--timeouts"></a> |
| 109 | +### Nested Schema for `timeouts` |
| 110 | + |
| 111 | +Optional: |
| 112 | + |
| 113 | +- **create** (String) |
| 114 | +- **update** (String) |
| 115 | + |
| 116 | + |
0 commit comments