Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit e769f29

Browse files
committed
k8s added
1 parent 8047646 commit e769f29

20 files changed

+1980
-3
lines changed

docs/data-sources/gcore_k8s.md

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "gcore_k8s Data Source - terraform-provider-gcorelabs"
4+
subcategory: ""
5+
description: |-
6+
Represent k8s cluster with one default pool.
7+
---
8+
9+
# gcore_k8s (Data Source)
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+
data "gcore_k8s" "v" {
24+
project_id = 1
25+
region_id = 1
26+
cluster_id = "dc3a3ea9-86ae-47ad-a8e8-79df0ce04839"
27+
}
28+
```
29+
30+
<!-- schema generated by tfplugindocs -->
31+
## Schema
32+
33+
### Required
34+
35+
- **cluster_id** (String)
36+
37+
### Optional
38+
39+
- **id** (String) The ID of this resource.
40+
- **project_id** (Number)
41+
- **project_name** (String)
42+
- **region_id** (Number)
43+
- **region_name** (String)
44+
45+
### Read-Only
46+
47+
- **api_address** (String)
48+
- **auto_healing_enabled** (Boolean)
49+
- **cluster_template_id** (String)
50+
- **container_version** (String)
51+
- **created_at** (String)
52+
- **discovery_url** (String)
53+
- **faults** (Map of String)
54+
- **fixed_network** (String)
55+
- **fixed_subnet** (String)
56+
- **health_status** (String)
57+
- **health_status_reason** (Map of String)
58+
- **keypair** (String)
59+
- **master_addresses** (List of String)
60+
- **master_flavor_id** (String)
61+
- **master_lb_floating_ip_enabled** (Boolean)
62+
- **name** (String)
63+
- **node_addresses** (List of String)
64+
- **node_count** (Number)
65+
- **pool** (List of Object) (see [below for nested schema](#nestedatt--pool))
66+
- **status** (String)
67+
- **status_reason** (String)
68+
- **updated_at** (String)
69+
- **user_id** (String)
70+
- **version** (String)
71+
72+
<a id="nestedatt--pool"></a>
73+
### Nested Schema for `pool`
74+
75+
Read-Only:
76+
77+
- **created_at** (String)
78+
- **docker_volume_size** (Number)
79+
- **docker_volume_type** (String)
80+
- **flavor_id** (String)
81+
- **max_node_count** (Number)
82+
- **min_node_count** (Number)
83+
- **name** (String)
84+
- **node_count** (Number)
85+
- **stack_id** (String)
86+
- **uuid** (String)
87+
88+
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "gcore_k8s_pool Data Source - terraform-provider-gcorelabs"
4+
subcategory: ""
5+
description: |-
6+
Represent k8s cluster's pool.
7+
---
8+
9+
# gcore_k8s_pool (Data Source)
10+
11+
Represent k8s cluster's 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+
data "gcore_k8s_pool" "v" {
24+
project_id = 1
25+
region_id = 1
26+
cluster_id = "6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25"
27+
pool_id = "dc3a3ea9-86ae-47ad-a8e8-79df0ce04839"
28+
}
29+
```
30+
31+
<!-- schema generated by tfplugindocs -->
32+
## Schema
33+
34+
### Required
35+
36+
- **cluster_id** (String)
37+
- **pool_id** (String)
38+
39+
### Optional
40+
41+
- **id** (String) The ID of this resource.
42+
- **project_id** (Number)
43+
- **project_name** (String)
44+
- **region_id** (Number)
45+
- **region_name** (String)
46+
47+
### Read-Only
48+
49+
- **created_at** (String)
50+
- **docker_volume_size** (Number)
51+
- **docker_volume_type** (String) Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
52+
- **flavor_id** (String)
53+
- **is_default** (Boolean)
54+
- **max_node_count** (Number)
55+
- **min_node_count** (Number)
56+
- **name** (String)
57+
- **node_count** (Number)
58+
- **stack_id** (String)
59+
60+

docs/resources/gcore_k8s.md

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
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+

docs/resources/gcore_k8s_pool.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "gcore_k8s_pool Resource - terraform-provider-gcorelabs"
4+
subcategory: ""
5+
description: |-
6+
Represent k8s cluster's pool.
7+
---
8+
9+
# gcore_k8s_pool (Resource)
10+
11+
Represent k8s cluster's 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_pool" "v" {
24+
project_id = 1
25+
region_id = 1
26+
cluster_id = "6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25"
27+
name = "tf-pool"
28+
flavor_id = "g1-standard-1-2"
29+
min_node_count = 1
30+
max_node_count = 2
31+
node_count = 1
32+
docker_volume_size = 2
33+
}
34+
```
35+
36+
<!-- schema generated by tfplugindocs -->
37+
## Schema
38+
39+
### Required
40+
41+
- **cluster_id** (String)
42+
- **flavor_id** (String)
43+
- **max_node_count** (Number)
44+
- **min_node_count** (Number)
45+
- **name** (String)
46+
- **node_count** (Number)
47+
48+
### Optional
49+
50+
- **docker_volume_size** (Number)
51+
- **docker_volume_type** (String) Available value is 'standard', 'ssd_hiiops', 'cold', 'ultra'.
52+
- **id** (String) The ID of this resource.
53+
- **last_updated** (String)
54+
- **project_id** (Number)
55+
- **project_name** (String)
56+
- **region_id** (Number)
57+
- **region_name** (String)
58+
- **timeouts** (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
59+
60+
### Read-Only
61+
62+
- **created_at** (String)
63+
- **stack_id** (String)
64+
65+
<a id="nestedblock--timeouts"></a>
66+
### Nested Schema for `timeouts`
67+
68+
Optional:
69+
70+
- **create** (String)
71+
- **update** (String)
72+
73+

docs/resources/gcore_securitygroup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Required:
7474

7575
- **direction** (String) Available value is 'ingress', 'egress'
7676
- **ethertype** (String) Available value is 'IPv4', 'IPv6'
77-
- **protocol** (String) Available value is udp,tcp,any,icmp,ah,dccp,egp,esp,gre,igmp,ospf,pgm,rsvp,sctp,udplite,vrrp
77+
- **protocol** (String) Available value is udp,tcp,any,icmp,ah,dccp,egp,esp,gre,igmp,ospf,pgm,rsvp,sctp,udplite,vrrp,51,112
7878

7979
Optional:
8080

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
provider gcore {
2+
user_name = "test"
3+
password = "test"
4+
gcore_platform = "https://api.gcdn.co"
5+
gcore_api = "https://api.cloud.gcorelabs.com"
6+
}
7+
8+
data "gcore_k8s" "v" {
9+
project_id = 1
10+
region_id = 1
11+
cluster_id = "dc3a3ea9-86ae-47ad-a8e8-79df0ce04839"
12+
}
13+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
provider gcore {
2+
user_name = "test"
3+
password = "test"
4+
gcore_platform = "https://api.gcdn.co"
5+
gcore_api = "https://api.cloud.gcorelabs.com"
6+
}
7+
8+
data "gcore_k8s_pool" "v" {
9+
project_id = 1
10+
region_id = 1
11+
cluster_id = "6bf878c1-1ce4-47c3-a39b-6b5f1d79bf25"
12+
pool_id = "dc3a3ea9-86ae-47ad-a8e8-79df0ce04839"
13+
}
14+

0 commit comments

Comments
 (0)