Skip to content

Commit d3b6563

Browse files
authored
updated default kubernetes version to v1.18.10, fixed deprecated interpolation-only expressions (#243)
1 parent 82f26a4 commit d3b6563

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

docs/terraformoptions.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,8 @@ admission_controller_options = {
450450

451451
|`kubernetes_version`
452452
|The version of Kubernetes to provision. This is based on the available versions in OKE. By default, the latest version is selected. The use of 'LATEST' is no longer permitted in order to facilitate upgrades.
453-
|v1.15.7, v1.16.8 ,v1.17.9
454-
|v1.17.9
453+
|v1.16.8, v1.17.9, v1.18.10
454+
|v1.18.10
455455

456456
|`node_pools`
457457
a|The number, shape of node pools and node_pool_size to create. Each key and tuple pair corresponds to 1 node pool.

docs/upgrade.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ This project supports only the out-of-place method of upgrading the worker nodes
4242

4343
+
4444
----
45-
kubernetes_version = "v1.15.7"
45+
kubernetes_version = "v1.16.8"
4646
----
4747
to
4848

4949
+
5050
----
51-
kubernetes_version = "v1.16.8"
51+
kubernetes_version = "v1.18.10"
5252
----
5353

5454
. Run terraform:
@@ -84,7 +84,7 @@ node_pools = {
8484
}
8585
----
8686

87-
When node pools 3 and 4 are created, they will be created with the cluster version of Kubernetes. Since you have already upgrade your cluster to `v1.16.8`, node pools 3 and 4 will be running Kubernetes v1.16.8
87+
When node pools 3 and 4 are created, they will be created with the cluster version of Kubernetes. Since you have already upgrade your cluster to `v1.18.10`, node pools 3 and 4 will be running Kubernetes v1.18.10
8888

8989
. Set `nodepool_drain=true`. This will instruct the OKE cluster that some node pools will be drained.
9090

modules/oke/drain.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ data "template_file" "drainlist" {
1414
cluster_id = oci_containerengine_cluster.k8s_cluster.id
1515
compartment_id = var.compartment_id
1616
region = var.region
17-
pools_to_drain = var.label_prefix == "none" ? trim(join(",", formatlist("'%s'", var.node_pools_to_drain)), "'") : trim(join(",", formatlist("'%s-%s'", "${var.label_prefix}", var.node_pools_to_drain)), "'")
17+
pools_to_drain = var.label_prefix == "none" ? trim(join(",", formatlist("'%s'", var.node_pools_to_drain)), "'") : trim(join(",", formatlist("'%s-%s'", var.label_prefix, var.node_pools_to_drain)), "'")
1818
}
1919

2020
count = var.nodepool_drain == true ? 1 : 0

terraform.tfvars.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ check_node_active = "none"
130130

131131
dashboard_enabled = false
132132

133-
kubernetes_version = "v1.17.9"
133+
kubernetes_version = "v1.18.10"
134134

135135
node_pools = {
136136
np1 = {shape="VM.Standard.E3.Flex",ocpus=2,memory=20,node_pool_size=2,boot_volume_size=150}

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ variable "dashboard_enabled" {
275275
}
276276

277277
variable "kubernetes_version" {
278-
default = "v.16.8"
278+
default = "v1.18.10"
279279
description = "The version of kubernetes to use when provisioning OKE or to upgrade an existing OKE cluster to."
280280
type = string
281281
}

0 commit comments

Comments
 (0)