Skip to content

Commit

Permalink
Merge pull request #128 from utilitywarehouse/external-apiserver-address
Browse files Browse the repository at this point in the history
allow apiserver external hostname to differ from master_address
  • Loading branch information
ffilippopoulos committed May 28, 2020
2 parents a3ea578 + 4c6f94e commit 67f1104
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion master.tf
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ data "template_file" "kube-apiserver" {
hyperkube_image_tag = var.hyperkube_image_tag
etcd_endpoints = join(",", formatlist("https://%s:2379", var.etcd_addresses))
service_network = var.service_network
master_address = var.master_address
master_address = var.external_apiserver_address == "" ? var.master_address : var.external_apiserver_address
master_instance_count = var.master_instance_count
cloud_provider = var.cloud_provider
oidc_issuer_url = var.oidc_issuer_url
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ variable "master_address" {
description = "The address of the kubernetes API server, typically of their load balancer. Used by the worker kubelet."
}

variable "external_apiserver_address" {
description = "The external address passed to apiservers to use when generating externalized URLs. If nothing passed the master_address will be used."
default = ""
}

variable "cloud_provider" {
description = "The cloud provider. Used by the API Server, the Controller Manager and kubelet."
default = ""
Expand Down

0 comments on commit 67f1104

Please sign in to comment.