Skip to content

Commit

Permalink
Upgrade etcd to v3.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos Filippopoulos committed Oct 7, 2019
1 parent 15be91e commit 69a1a2c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
22 changes: 9 additions & 13 deletions etcd.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,15 @@ data "template_file" "etcd-cfssl-new-cert" {
template = file("${path.module}/resources/cfssl-new-cert.sh")

vars = {
cert_name = "node"
user = "etcd"
group = "etcd"
profile = "client-server"
path = "/etc/etcd/ssl"
cn = "${count.index}.etcd.${var.dns_domain}"
org = ""
get_ip = var.get_ip_command[var.cloud_provider]
# workaround for https://github.com/kubernetes/kubernetes/issues/72102
# include first member's ip in SAN for all nodes
# this replicates kubeadm behaviour to include first node's ip, as kubeadm
# generates all certificates on the first node
extra_names = join(",", ["etcd.${var.dns_domain}", var.etcd_addresses[0]])
cert_name = "node"
user = "etcd"
group = "etcd"
profile = "client-server"
path = "/etc/etcd/ssl"
cn = "${count.index}.etcd.${var.dns_domain}"
org = ""
get_ip = var.get_ip_command[var.cloud_provider]
extra_names = ""
}
}

Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ variable "etcd_image_url" {

variable "etcd_image_tag" {
description = "The version of the etcd image to use."
default = "v3.3.13"
default = "v3.4.1"
}

variable "node_exporter_image_url" {
Expand Down

0 comments on commit 69a1a2c

Please sign in to comment.