1
0
mirror of https://github.com/poseidon/typhoon synced 2024-09-28 06:50:02 +02:00

Add disk_size variable on Google Cloud

This commit is contained in:
Dalton Hubble 2018-03-25 22:04:14 -07:00
parent ba9daf439e
commit 8d3d4220fd
6 changed files with 15 additions and 2 deletions

View File

@ -10,6 +10,10 @@ Notable changes between versions.
* Remove optional variable `networking`. Only flannel works on Digital Ocean.
#### Google Cloud
* Add `disk_size` variable for setting instance disk size in GB
## v1.9.6
* Kubernetes [v1.9.6](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.9.md#v196)

View File

@ -256,6 +256,7 @@ resource "google_dns_managed_zone" "zone-for-clusters" {
| worker_count | Number of workers | 1 | 3 |
| machine_type | Machine type for compute instances | "n1-standard-1" | See below |
| os_image | Container Linux image for compute instances | "coreos-stable" | "coreos-stable-1632-3-0-v20180215" |
| disk_size | Size of the disk in GB | 40 | 100 |
| worker_preemptible | If enabled, Compute Engine will terminate workers randomly within 24 hours | false | true |
| controller_clc_snippets | Controller Container Linux Config snippets | [] | |
| worker_clc_snippets | Worker Container Linux Config snippets | [] | |

View File

@ -10,6 +10,7 @@ module "controllers" {
count = "${var.controller_count}"
machine_type = "${var.machine_type}"
os_image = "${var.os_image}"
disk_size = "${var.disk_size}"
# configuration
networking = "${var.networking}"
@ -31,6 +32,7 @@ module "workers" {
count = "${var.worker_count}"
machine_type = "${var.machine_type}"
os_image = "${var.os_image}"
disk_size = "${var.disk_size}"
preemptible = "${var.worker_preemptible}"
# configuration

View File

@ -43,7 +43,7 @@ variable "os_image" {
variable "disk_size" {
type = "string"
default = "40"
description = "The size of the disk in gigabytes."
description = "Size of the disk in GB"
}
# configuration

View File

@ -46,6 +46,12 @@ variable "os_image" {
description = "Container Linux image for compute instances (e.g. coreos-stable)"
}
variable "disk_size" {
type = "string"
default = "40"
description = "Size of the disk in GB"
}
variable "worker_preemptible" {
type = "string"
default = "false"

View File

@ -43,7 +43,7 @@ variable "os_image" {
variable "disk_size" {
type = "string"
default = "40"
description = "The size of the disk in gigabytes."
description = "Size of the disk in GB"
}
variable "preemptible" {