You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,7 @@ module "ocp_base" {
111
111
pool_name = "default"
112
112
machine_type = "bx2.4x16"
113
113
workers_per_zone = 2
114
+
operating_system = "REDHAT_8_64"
114
115
}
115
116
]
116
117
}
@@ -323,7 +324,7 @@ Optionally, you need the following permissions to attach Access Management tags
323
324
| <a name="input_verify_worker_network_readiness"></a> [verify\_worker\_network\_readiness](#input\_verify\_worker\_network\_readiness) | By setting this to true, a script will run kubectl commands to verify that all worker nodes can communicate successfully with the master. If the runtime does not have access to the kube cluster to run kubectl commands, this should be set to false. | `bool` | `true` | no |
324
325
| <a name="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id) | Id of the VPC instance where this cluster will be provisioned | `string` | n/a | yes |
325
326
| <a name="input_vpc_subnets"></a> [vpc\_subnets](#input\_vpc\_subnets) | Metadata that describes the VPC's subnets. Obtain this information from the VPC where this cluster will be created | <pre>map(list(object({<br/> id = string<br/> zone = string<br/> cidr_block = string<br/> })))</pre> | n/a | yes |
Copy file name to clipboardExpand all lines: examples/add_rules_to_sg/main.tf
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -158,6 +158,7 @@ locals {
158
158
pool_name ="default"# ibm_container_vpc_cluster automatically names standard pool "standard" (See https://github.com/IBM-Cloud/terraform-provider-ibm/issues/2849)
Copy file name to clipboardExpand all lines: examples/advanced/main.tf
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,7 @@ locals {
111
111
pool_name ="default"# ibm_container_vpc_cluster automatically names default pool "default" (See https://github.com/IBM-Cloud/terraform-provider-ibm/issues/2849)
Copy file name to clipboardExpand all lines: examples/basic/main.tf
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ locals {
63
63
pool_name ="default"# ibm_container_vpc_cluster automatically names default pool "default" (See https://github.com/IBM-Cloud/terraform-provider-ibm/issues/2849)
64
64
machine_type ="bx2.4x16"
65
65
workers_per_zone =2# minimum of 2 is allowed when using single zone
Copy file name to clipboardExpand all lines: examples/cross_kms_support/main.tf
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,7 @@ locals {
68
68
pool_name ="default"# ibm_container_vpc_cluster automatically names default pool "default" (See https://github.com/IBM-Cloud/terraform-provider-ibm/issues/2849)
69
69
machine_type ="bx2.4x16"
70
70
workers_per_zone =2# minimum of 2 is allowed when using single zone
Copy file name to clipboardExpand all lines: examples/custom_sg/main.tf
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -63,12 +63,14 @@ locals {
63
63
pool_name ="default"# ibm_container_vpc_cluster automatically names default pool "default" (See https://github.com/IBM-Cloud/terraform-provider-ibm/issues/2849)
64
64
machine_type ="bx2.4x16"
65
65
workers_per_zone =2# minimum of 2 is allowed when using single zone
Copy file name to clipboardExpand all lines: examples/fscloud/main.tf
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -222,6 +222,7 @@ locals {
222
222
pool_name ="default"# ibm_container_vpc_cluster automatically names default pool "default" (See https://github.com/IBM-Cloud/terraform-provider-ibm/issues/2849)
# To verify rhcos operating system exists only for OCP versions >=4.15
62
62
# tflint-ignore: terraform_unused_declarations
@@ -66,8 +66,9 @@ locals {
66
66
worker_pool_rhcos_validation=alltrue(local.worker_pool_rhcos_entry) ?true:tobool("RHCOS requires VPC clusters created from 4.15 onwards. Upgraded clusters from 4.14 cannot use RHCOS")
67
67
68
68
# Validate if default worker pool's operating system is RHEL, all pools' operating system must be RHEL
valid_rhel_worker_pools=local.check_other_os|| (local.default_pool.operating_system== local.os_rhel&&alltrue(local.rhel_check_for_all_standalone_pools)) ==true?true:tobool("Choosing RHEL for the default worker pool will limit all additional worker pools to RHEL.")
Copy file name to clipboardExpand all lines: modules/fscloud/README.md
+81-1Lines changed: 81 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,86 @@ This is a profile for IBM Cloud Red Hat OpenShift cluster on VPC Gen2 that meets
7
7
It has been scanned by [IBM Code Risk Analyzer (CRA)](https://cloud.ibm.com/docs/code-risk-analyzer-cli-plugin?topic=code-risk-analyzer-cli-plugin-cra-cli-plugin#terraform-command) and meets all applicable goals.
# obtain the below values from the targeted VPC and adjust to the number of zones, subnets, subnet name, cidr_block, id, zone
22
+
vpc_subnets = {
23
+
zone-1 = [
24
+
{
25
+
cidr_block = "192.168.32.0/22"
26
+
id = "0717-afc29fbb-0dbe-493a-a5b9-f3c5899cb8b9"
27
+
zone = "us-south-1"
28
+
},
29
+
{
30
+
cidr_block = "192.168.36.0/22"
31
+
id = "0727-d65c1eda-9e38-4200-8452-cb8ff5bb3140"
32
+
zone = "us-south-2"
33
+
},
34
+
{
35
+
cidr_block = "192.168.40.0/22"
36
+
id = "0737-9a823cd3-16bf-4ba4-a429-9e1fc7db74b8"
37
+
zone = "us-south-3"
38
+
}
39
+
]
40
+
zone-2 = [
41
+
{
42
+
cidr_block = "192.168.0.0/22"
43
+
id = "0717-846b9490-34ae-4a6c-8288-28112dca1ba3"
44
+
zone = "us-south-1"
45
+
},
46
+
{
47
+
cidr_block = "192.168.4.0/22"
48
+
id = "0727-ef8db7f6-ffa5-4d8b-a317-4631741a45ee"
49
+
zone = "us-south-2"
50
+
},
51
+
{
52
+
cidr_block = "192.168.8.0/22"
53
+
id = "0737-c9a6d871-d95b-4914-abf5-82c22f4161d1"
54
+
zone = "us-south-3"
55
+
}
56
+
]
57
+
zone-3 = [
58
+
{
59
+
cidr_block = "192.168.16.0/22"
60
+
id = "0717-d46e227c-89d4-4b02-9008-d03907a275b6"
61
+
zone = "us-south-1"
62
+
},
63
+
{
64
+
cidr_block = "192.168.20.0/22"
65
+
id = "0727-93b1edcb-966c-4517-a7af-6ac63cd93adf"
66
+
zone = "us-south-2"
67
+
},
68
+
{
69
+
cidr_block = "192.168.24.0/22"
70
+
id = "0737-807ec4f1-4d84-484e-b2f4-62dd5e431065"
71
+
zone = "us-south-3"
72
+
}
73
+
]
74
+
}
75
+
worker_pools = [
76
+
{
77
+
subnet_prefix = "default"
78
+
pool_name = "default"
79
+
machine_type = "bx2.4x16"
80
+
workers_per_zone = 2
81
+
operating_system = "REDHAT_8_64"
82
+
}
83
+
]
84
+
import_default_worker_pool_on_create = false
85
+
use_private_endpoint = true
86
+
87
+
}
88
+
```
89
+
10
90
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
11
91
### Requirements
12
92
@@ -60,7 +140,7 @@ No resources.
60
140
| <aname="input_verify_worker_network_readiness"></a> [verify\_worker\_network\_readiness](#input\_verify\_worker\_network\_readiness)| By setting this to true, a script will run kubectl commands to verify that all worker nodes can communicate successfully with the master. If the runtime does not have access to the kube cluster to run kubectl commands, this should be set to false. |`bool`|`true`| no |
61
141
| <aname="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id)| ID of the VPC instance where this cluster will be provisioned |`string`| n/a | yes |
62
142
| <aname="input_vpc_subnets"></a> [vpc\_subnets](#input\_vpc\_subnets)| Metadata that describes the VPC's subnets. Obtain this information from the VPC where this cluster will be created | <pre>map(list(object({<br/> id = string<br/> zone = string<br/> cidr_block = string<br/> })))</pre> | n/a | yes |
0 commit comments