Skip to content

Commit

Permalink
Merge pull request #11 from utilitywarehouse/workers-public-dns-named…
Browse files Browse the repository at this point in the history
…-port

feat: added named DNS port to worker instances
  • Loading branch information
bilbercode authored Jul 16, 2018
2 parents df1bf80 + 0663754 commit a15249b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ The input variables are documented in their description and it's best to refer t

## Ouputs

- `master_address` - the endpoint on which the kubernetes api is made available
- `cfssl_data_volumeid`- id of cfssl persistent volume
- `master_address` - the endpoint on which the kubernetes api is made available
- `cfssl_data_volumeid`- id of cfssl persistent volume
- `etcd_data_volumeids`- list of ids of etcd persistent volumes
- `masters_group` - group VM management address for masters
- `masters_pool` - target pool address of the masters
- `workers_group` - group VM management address for workers
- `workers_pool` - target pool address of the workers
- `worker_public_http_port_name` - address that workers will accept public http protocol requests
- `worker_public_https_port_name` - address that workers will accept public https protocol requests
- `worker_public_dns_port_name` - address that workers will accept public DNS protocol requests

## Usage

Expand Down
4 changes: 4 additions & 0 deletions output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ output "worker_public_http_port_name" {
output "worker_public_https_port_name" {
value = "public-https"
}

output "worker_public_dns_port_name" {
value = "public-dns"
}
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,8 @@ variable "worker_public_https_port" {
description = "worker-https port for workers instances to receive https traffic"
default = "30143"
}

variable "worker_public_dns_port" {
description = "worker-dns port for workers instances to receive DNS traffic"
default = "32253"
}
5 changes: 5 additions & 0 deletions workers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ resource "google_compute_region_instance_group_manager" "workers" {
name = "public-https"
port = "${var.worker_public_https_port}"
}

named_port {
name = "public-dns"
port = "${var.worker_public_dns_port}"
}
}

// Firewall Rules
Expand Down

0 comments on commit a15249b

Please sign in to comment.