Skip to content

Commit a80c6e6

Browse files
Merge pull request #28 from ilyasotkov/master
Allow flexibility of port range allowed of workers_ingress_cluster security group
2 parents e860300 + 02dc684 commit a80c6e6

File tree

5 files changed

+14
-2
lines changed

5 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this
66
project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [[v1.0.1](https://github.com/terraform-aws-modules/terraform-aws-eks/compare/v1.0.0...v1.0.1)] - 2018-06-23]
9+
10+
### Added
11+
12+
- new variable `worker_sg_ingress_from_port` allows to change the minimum port number from which pods will accept communication
13+
814
## [[v1.0.0](https://github.com/terraform-aws-modules/terraform-aws-eks/compare/v0.2.0...v1.0.0)] - 2018-06-11]
915

1016
### Added

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ MIT Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraform-a
104104
| vpc_id | VPC where the cluster and workers will be deployed. | string | - | yes |
105105
| worker_groups | A list of maps defining worker group configurations. See workers_group_defaults for valid keys. | list | `<list>` | no |
106106
| worker_security_group_id | If provided, all workers will be attached to this security group. If not given, a security group will be created with necessary ingres/egress to work with the EKS cluster. | string | `` | no |
107+
| worker_sg_ingress_from_port | Minimum port number from which pods will accept communication. Must be changed to a lower value if some pods in your cluster will expose a port lower than 1025 (e.g. 22, 80, or 443). | string | `1025` | no |
107108
| workers_group_defaults | Default values for target groups as defined by the list of maps. | map | `<map>` | no |
108109

109110
## Outputs

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,8 @@ variable "worker_security_group_id" {
6767
description = "If provided, all workers will be attached to this security group. If not given, a security group will be created with necessary ingres/egress to work with the EKS cluster."
6868
default = ""
6969
}
70+
71+
variable "worker_sg_ingress_from_port" {
72+
description = "Minimum port number from which pods will accept communication. Must be changed to a lower value if some pods in your cluster will expose a port lower than 1025 (e.g. 22, 80, or 443)."
73+
default = "1025"
74+
}

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.0.0
1+
v1.0.1

workers.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ resource "aws_security_group_rule" "workers_ingress_cluster" {
7373
protocol = "tcp"
7474
security_group_id = "${aws_security_group.workers.id}"
7575
source_security_group_id = "${local.cluster_security_group_id}"
76-
from_port = 1025
76+
from_port = "${var.worker_sg_ingress_from_port}"
7777
to_port = 65535
7878
type = "ingress"
7979
count = "${var.worker_security_group_id == "" ? 1 : 0}"

0 commit comments

Comments
 (0)