Terraform Modules

May 23, 2023 · View on GitHub

Maintained by cloudkite.io GitHub tag (latest SemVer) Terraform Version

This repo contains Terraform modules for building and maintaining cloud infrastructure.

These modules are opinionated based on what we consider good defaults.

Repo content

Modules

Inputs

The following map is required by the gke_nodepools map used in the cloudkite's gke module:

NameDescriptionTypeRequired
auto_repairWhether the nodes will be automatically repaired.boolyes
auto_upgradeWhether the nodes will be automatically upgraded.boolyes
min_node_countMinimum number of nodes in the NodePool. Must be >=0 and <= max_node_count.numberyes
max_node_countMaximum number of nodes in the NodePool. Must be >= min_node_count.numberyes
machine_typeThe VM instance type.stringyes
disk_sizeSize of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. Defaults to 100GB.stringyes
preemptibleA boolean that represents whether or not the underlying node VMs are preemptible. See the official documentation for more information. Defaults to false.boolyes
versionThe Kubernetes version on the nodes. Must either be unset or set to the same value as min_master_version on create. Defaults to the default version set by GKE which is not necessarily the latest version. This only affects nodes in the default node pool. While a fuzzy version can be specified, it's recommended that you specify explicit versions as Terraform will see spurious diffs when fuzzy versions are used. See the google_container_engine_versions data source's version_prefix field to approximate fuzzy versions in a Terraform-compatible way. To update nodes in other node pools, use the version attribute on the node pool.stringyes

License

Please see LICENSE for how the code in this repo is licensed.

Copyright © 2019 Cloudkite.io