Skip to content

Commit 2e25569

Browse files
author
Martin Linkhorst
committed
add config item to open worker-to-worker communication for steadybit
1 parent 8487a5c commit 2e25569

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

cluster/cluster.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ Resources:
143143
IpProtocol: tcp
144144
SourceSecurityGroupId: !Ref EKSWorkerSecurityGroup
145145
ToPort: 443
146+
{{- if eq .Cluster.ConfigItems.open_sg_for_steadybit "true" }}
146147
EKSWorkerSecurityGroupIngressFromWorkerToWorkerSteadyBit:
147148
Properties:
148149
FromPort: 8085
@@ -151,6 +152,7 @@ Resources:
151152
SourceSecurityGroupId: !Ref EKSWorkerSecurityGroup
152153
ToPort: 8087
153154
Type: 'AWS::EC2::SecurityGroupIngress'
155+
{{- end }}
154156
EKSCluster:
155157
Type: AWS::EKS::Cluster
156158
Properties:
@@ -939,6 +941,7 @@ Resources:
939941
SourceSecurityGroupId: !Ref WorkerSecurityGroup
940942
ToPort: 10250 # Kubelet
941943
Type: 'AWS::EC2::SecurityGroupIngress'
944+
{{- if eq .Cluster.ConfigItems.open_sg_for_steadybit "true" }}
942945
WorkerSecurityGroupIngressFromWorkerToWorkerSteadyBit:
943946
Properties:
944947
FromPort: 8085
@@ -947,6 +950,7 @@ Resources:
947950
SourceSecurityGroupId: !Ref WorkerSecurityGroup
948951
ToPort: 8087
949952
Type: 'AWS::EC2::SecurityGroupIngress'
953+
{{- end }}
950954
WorkerSecurityGroupIngressFromWorkerToWorkerSkipperMetrics:
951955
Properties:
952956
FromPort: 9911

cluster/config-defaults.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,9 @@ enable_statefulset_autodelete_pvc: "true"
11291129
# Source for the template function: sgIngressRanges: https://github.com/zalando-incubator/cluster-lifecycle-manager/blob/42695865a251fef58e22ce612d6549e75fa5d103/provisioner/template.go#L336-L417
11301130
open_sg_ingress_ranges: ""
11311131

1132+
# open ports 8085-8087 between worker nodes for steadybit components
1133+
open_sg_for_steadybit: "false"
1134+
11321135
# Each subdomain can reach a max of 63 bytes on Route53
11331136
# This custom value sets the subdomain max allowed length taking into consideration the 'cname-' prefix added by external-dns
11341137
subdomain_max_length: "57"

0 commit comments

Comments
 (0)