Update on Terraform OKE module

We recently released version 3.0.0 of the terraform-oci-oke module. I’ll do a brief break down of the changes here.

Terraform 0.13

The biggest motivation for releasing a major version was compatibility with Terraform 0.13. Besides a couple of deprecation warnings, the rest of the code base was ready for 0.13. However, since the OKE module also uses a few remote submodules (base, vcn, bastion, operator), we upgraded those as well.

New Features

In terms of new features, the major addition is the support for using Flex Shapes for worker node pools. You can now specify your node pool using Flex Shapes, custom boot volume size as well as custom memory sizes.

This necessitated a change in the variable file format e.g. in the previous version, you could specify node pools in the following manner:

It was a simple map and each key represented a node pool which was specified using shape and the size of the node pool. Since we now have configuration options, we need to be able to both specify these but also set sensible defaults in case the user does not specify them, regardless of using the Flex shape or not.

You can now set your node pool in the following manner:

When using Flex Shapes, if you do not specify the boot volume size, the number of OCPUs or memory, a default of 50GB, 1 OCPU and 16 GB are used respectively.

We also added the ability to have the script enable Vertical Pod Autoscaling as well as updated the Calico installation so it’s no longer tied to a particular Calico version.

Kubernetes Tools

We have also reorganized the installation of kubectl and helm into a new file called k8stools.tf. As new and interesting Kubernetes tools get developed and adopted by the Kubernetes community and users, we want to be able to eventually add them ourselves or give our users a pattern and mechanism to add their own tools.

Bug fixes

Lastly, we fixed a few bugs as well as updated the documentation and topology to use the new OCI icons.

Community and contributing

We would like to thank the community for its contributions in all forms: whether they are new features, bug fixes, enhancements or new ideas.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store