Skip to content

Commit ea02a73

Browse files
authored
Merge pull request #80 from hyder/v12
variables with id renaming, bastion image changes
2 parents df77782 + 8f9ff4b commit ea02a73

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+246
-258
lines changed

CHANGELOG.adoc

Lines changed: 74 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,88 @@ All notable changes to this project are documented in this file.
77

88
The format is based on {uri-changelog}[Keep a Changelog].
99

10-
== 1.0.0-RC1 (August 27,2019)
10+
== v1.0.0 (September 27,2019)
11+
12+
=== Changes
13+
* changed all variables_ocids to ids
14+
* using Oracle Linux only for bastion now
15+
* updated docs
16+
17+
== v1.0.0-beta.4 (September 24,2019)
18+
19+
=== Improvements
20+
21+
* Added integration with OCI KMS for encrypting K8s secrets
22+
* Added outputs for instance_principal dynamic group, enabled update_dynamic_group.sh
23+
* Updated documentation for KMS
24+
* New module for KMS usage policies
25+
26+
=== Changes
27+
* Set minimum version of Terraform to 0.12.8
28+
* Changes in variable file - removed redundant variables e.g. nodepool_topology, quantity_per_subnet, preferred lb_subnets
29+
* Updated documentation
30+
* terraform.tfvars.example
31+
32+
== v1.0.0-beta.3 (September 16,2019)
33+
34+
=== Improvements
35+
36+
* Networking
37+
** Worker and load balancer subnets now use regional subnets
38+
** Simplified network topology for both multi and single AD regions
39+
40+
=== Changes
41+
* Set minimum version of Terraform to 0.12.8
42+
* Changes in variable file - removed redundant variables e.g. nodepool_topology, quantity_per_subnet, preferred lb_subnets
43+
* Updated documentation
44+
* terraform.tfvars.example
45+
46+
== v1.0.0-beta.2 (September 13,2019)
47+
48+
=== Improvements
49+
50+
* Bastion
51+
** Changed default bastion shape to the smaller (and cheaper) VM.Standard.E2.1
52+
53+
* Worker nodes
54+
** Added ability to support mixed Kubernetes workloads by choosing different shapes for each node pool
55+
56+
=== Changes
57+
. Set minimum version of Terraform to 0.12.5
58+
. Temporarily disabled calico installation option
59+
60+
== v1.0.0-beta.1 (August 27,2019)
1161

1262
=== Notes
1363
* In order to use private load balancers, the necessary oci load balancer annotations must be used.
1464

1565
=== Improvements
66+
* Bastion
67+
** Added ability to restrict access to bastion host to a CIDR block
68+
** Bash aliases for kubectl (k) and helm (h)
69+
** Generated script (tesseract.sh) to ssh to the bastion
70+
**Optional addition and initialization of incubator and jetstack repos on the bastion
1671

17-
* Added ability to restrict access to bastion host to a CIDR block
18-
* Bash aliases for kubectl (k) and helm (h)
19-
* Generated script (tesseract.sh) to ssh to the bastion
20-
* Optional addition and initialization of incubator and jetstack repos on the bastion
21-
* Service Gateway routing is now automatically added when service gateway is enabled. Worker nodes can now use the service gateway to access Object Storage, Streaming and other OCI Services without manual configuration of routing and security lists
22-
* Separate and simplified security lists for public and private workers
23-
* Added private subnets for internal load balancers
24-
* Improved subnet defaults:
25-
** Avoid potential overlapping subnets when creating or scaling large clusters to maximum cluster size
26-
** Bastion: maximum of 5
27-
** Load Balancers: maximum of 29 per subnet
28-
** Worker subnets: maximum of 16380 per subnet, allowing clusters to scale to the maximum that is supported by Kubernetes (5000)
29-
* Ability to choose load balancer types (public or internal)
30-
* Improved load balancer selection algorithm. There's no need to toggle the load balancer code for single AD regions anymore
31-
* Added ability to specify preferred AD pair for load balancers in 3*AD regions
32-
* Minimum of 3 worker nodes per subnet to ensure adequate number of fault domains in single AD regions
33-
* Added ability to specify image OCID or choose OS version for worker nodes
34-
* Improved documentation
72+
* Networking
73+
** Separate and simplified security lists for public and private workers
74+
** Added private subnets for internal load balancers
75+
** Improved subnet defaults:
76+
*** Avoid potential overlapping subnets when creating or scaling large clusters to maximum cluster size
77+
*** Bastion: maximum of 5
78+
*** Load Balancers: maximum of 29 per subnet
79+
*** Worker subnets: maximum of 16380 IPv4 addresses per subnet
80+
** Ability to choose load balancer types (public or internal)
81+
** Improved load balancer selection algorithm. There’s no need to toggle the load balancer code for single AD regions anymore
82+
** Added ability to specify preferred AD pair for load balancers in 3*AD regions
83+
** Minimum of 3 worker nodes per subnet to ensure adequate number of fault domains in single AD regions
84+
** Service Gateway routing is now automatically added when service gateway is enabled. Worker nodes can now use the service gateway to access Object Storage, Streaming and other OCI Services without manual configuration of routing and security lists
3585

36-
=== Changes
86+
* Worker nodes
87+
** Added ability to specify image OCID or choose OS version for worker nodes
88+
89+
*Improved documentation
3790

91+
===Changes
3892
* Completed upgrade of Terraform code to 0.12
3993
* Documentation uses asciidoc
4094
* instance_principal is now disabled by default on the bastion

CONTRIBUTING.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ an issue too.
1414
== Contributing to the terraform-oci-oke repository
1515

1616
Pull requests can be made under
17-
{uri-oracle-oca} [The Oracle Contributor Agreement](OCA).
17+
{uri-oracle-oca}[The Oracle Contributor Agreement](OCA).
1818

1919
For pull requests to be accepted, the bottom of your commit message must have
2020
the following line using your name and e-mail address as it appears in the

CONTRIBUTORS.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ CONTRIBUTORS
2424
- @kapmani
2525
- @briangustafson
2626
- @sahitgollapudi
27+
- @priteshkp
2728
2829
Others:
2930

docs/configuration.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ Enter the values for the following parameters in the terraform.tfvars file:
7979
* api_fingerprint
8080
* api_private_key_path
8181
* compartment_name
82-
* compartment_ocid
83-
* tenancy_ocid
84-
* user_ocid
82+
* compartment_id
83+
* tenancy_id
84+
* user_id
8585

8686
e.g.
8787

@@ -129,7 +129,7 @@ The networking parameters concern the VCN and the subnets network configuration
129129

130130
You can leave most of the default options. However, you may want to change the following 2 parameters:
131131

132-
* vcn_dns_name: this is the internal dns domain for resources created
132+
* vcn_dns_label: this is the internal dns domain for resources created
133133
* vcn_name: this is the name of the vcn that will be appended to the label prefix
134134

135135
****
@@ -224,7 +224,7 @@ The KMS integration parameters control whether {uri-oci-kms}[OCI Key Management
224224
create_bastion = true
225225
enable_instance_principal = true
226226
use_encryption = true
227-
existing_key_id = <existing_key_ocid>
227+
existing_key_id = <existing_key_id>
228228
----
229229

230230
{uri-terraform-options}#kms-integration[Reference]

docs/instructions.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ enable_instance_principal = "true"
156156
and verify:
157157

158158
----
159-
oci network vcn list --compartment-id <compartment-ocid>
159+
oci network vcn list --compartment-id <compartment-id>
160160
----
161161

162162
==== Disabling instance_principal on the bastion host

docs/prerequisites.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ The following OCIDs are required:
111111
. Tenancy OCID
112112
. User OCID
113113

114-
Follow the documentation for obtaining the tenancy and user ocids on {uri-oci-ocids}[OCI Documentation].
114+
Follow the documentation for obtaining the tenancy and user ids on {uri-oci-ocids}[OCI Documentation].
115115

116116
To obtain the compartment OCID:
117117

docs/quickstart.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ cp terraform.tfvars.example terraform.tfvars
4949

5050
* api_fingerprint
5151
* api_private_key_path
52-
* compartment_ocid
52+
* compartment_id
5353
* compartment_name
54-
* tenancy_ocid
55-
* user_ocid
54+
* tenancy_id
55+
* user_id
5656

5757
3. Override other parameters:
5858

@@ -61,7 +61,7 @@ cp terraform.tfvars.example terraform.tfvars
6161
4. Optional parameters to override:
6262
* ssh_private_key_path
6363
* ssh_public_key_path
64-
* vcn_dns_name
64+
* vcn_dns_label
6565
* vcn_name
6666
* create_bastion
6767
* cluster_name

docs/terraformoptions.adoc

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@ Configuration Terraform Options:
6060
|
6161
|None
6262

63-
|compartment_ocid
64-
|Compartment ocid where the OKE Cluster will be provisioned. *Required*
63+
|compartment_id
64+
|Compartment id where the OKE Cluster will be provisioned. *Required*
6565
|
6666
|None
6767

68-
|tenancy_ocid
69-
|Tenancy ocid of the user. *Required*
68+
|tenancy_id
69+
|Tenancy id of the user. *Required*
7070
|
7171
|None
7272

73-
|user_ocid
74-
|User's ocid. *Required*
73+
|user_id
74+
|User's id. *Required*
7575
|
7676
|None
7777

@@ -140,7 +140,7 @@ Configuration Terraform Options:
140140
|
141141
|10.0.0.0/16
142142

143-
|vcn_dns_name
143+
|vcn_dns_label
144144
|The internal DNS domain for resources created and prepended to "oraclevcn.com" which is the VCN-internal domain name.
145145
|
146146
|oke
@@ -237,19 +237,9 @@ subnets = {
237237
|ANYWHERE
238238

239239
|enable_instance_principal
240+
|Whether to enable instance_principal on the bastion. Refer to {uri-docs}/instructions.adoc/#enabling-instance_principal-on-the-bastion-host[instance_principal]
240241
|
241242
|
242-
|
243-
244-
|image_operating_system
245-
|The Operating System image to be used to provision the bastion.
246-
|Oracle Linux, CentOS, Canonical Ubuntu
247-
|Oracle Linux
248-
249-
|image_operating_system_version
250-
|The version of the selected Operating System to be used to provision the bastion host. Matching versions of available operating systems can be found {uri-oci-images}[here].
251-
|
252-
|7.7
253243

254244
|availability_domains
255245
|The Availability Domain where to provision non-OKE resources e.g. bastion host. This is specified in the form of a map.
@@ -266,11 +256,6 @@ availability_domains = {
266256
"bastion" = 1
267257
----
268258

269-
|bastion_package_update
270-
|Whether to update the apt database on first boot. Only applicable if the bastion host uses Ubuntu as Linux distribution.
271-
|true/false
272-
|true
273-
274259
|bastion_package_upgrade
275260
|Whether to upgrade the instance on first boot. If you choose Ubuntu for the bastion and you set this to true, also set the package_update to true as well.
276261
|true/false
@@ -420,12 +405,12 @@ Refer to {uri-topology}[topology] for more thorough examples.
420405
|None
421406
422407
|tenancy_name
423-
|The *_name_* of the tenancy to be used when creating the Docker secret. This is different from tenancy_ocid. *Required* if create_auth_token is set to true.
408+
|The *_name_* of the tenancy to be used when creating the Docker secret. This is different from tenancy_id. *Required* if create_auth_token is set to true.
424409
|
425410
|None
426411
427412
|username
428-
|The username that can login to the selected tenancy. This is different from tenancy_ocid. *Required* if create_auth_token is set to true.
413+
|The username that can login to the selected tenancy. This is different from tenancy_id. *Required* if create_auth_token is set to true.
429414
430415
|
431416
|None
@@ -513,6 +498,6 @@ Refer to {uri-topology}[topology] for more thorough examples.
513498
|false
514499
515500
|existing_key_id
516-
|ocid of existing KMS key
501+
|id of existing KMS key
517502
|
518503
|

locals.tf

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ locals {
77
api_fingerprint = var.api_fingerprint
88
api_private_key_path = var.api_private_key_path
99
compartment_name = var.compartment_name
10-
compartment_ocid = var.compartment_ocid
11-
tenancy_ocid = var.tenancy_ocid
12-
user_ocid = var.user_ocid
10+
compartment_id = var.compartment_id
11+
tenancy_id = var.tenancy_id
12+
user_id = var.user_id
1313
}
1414

1515
oci_base_ssh_keys = {
@@ -25,7 +25,7 @@ locals {
2525

2626
oci_base_vcn = {
2727
vcn_cidr = var.vcn_cidr
28-
vcn_dns_name = var.vcn_dns_name
28+
vcn_dns_label = var.vcn_dns_label
2929
vcn_name = var.vcn_name
3030
create_nat_gateway = var.create_nat_gateway
3131
nat_gateway_name = var.nat_gateway_name
@@ -40,22 +40,19 @@ locals {
4040
create_bastion = var.create_bastion
4141
bastion_access = var.bastion_access
4242
enable_instance_principal = var.enable_instance_principal
43-
image_ocid = var.image_ocid
44-
image_operating_system = var.image_operating_system
45-
image_operating_system_version = var.image_operating_system_version
43+
image_id = var.image_id
4644
availability_domains = var.availability_domains["bastion"]
47-
package_update = var.bastion_package_update
4845
package_upgrade = var.bastion_package_upgrade
4946
}
5047

5148
ocir = {
5249
api_fingerprint = var.api_fingerprint
5350
api_private_key_path = var.api_private_key_path
54-
compartment_ocid = var.compartment_ocid
51+
compartment_id = var.compartment_id
5552
create_auth_token = var.create_auth_token
5653
home_region = module.base.home_region
57-
tenancy_ocid = var.tenancy_ocid
58-
user_ocid = var.user_ocid
54+
tenancy_id = var.tenancy_id
55+
user_id = var.user_id
5956
}
6057

6158
oke_general = {
@@ -81,15 +78,14 @@ locals {
8178
}
8279

8380
oke_identity = {
84-
compartment_ocid = var.compartment_ocid
85-
user_ocid = var.user_ocid
81+
compartment_id = var.compartment_id
82+
user_id = var.user_id
8683
}
8784

8885
oke_bastion = {
8986
bastion_public_ip = module.base.bastion_public_ip
9087
create_bastion = var.create_bastion
9188
enable_instance_principal = var.enable_instance_principal
92-
image_operating_system = var.image_operating_system
9389
}
9490

9591
oke_cluster = {

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module "network" {
5656
source = "./modules/okenetwork"
5757

5858
# identity parameters
59-
compartment_ocid = var.compartment_ocid
59+
compartment_id = var.compartment_id
6060

6161
# general parameters
6262
oke_general = local.oke_general

0 commit comments

Comments
 (0)