File tree 2 files changed +50
-10
lines changed
2 files changed +50
-10
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,42 @@ module "vpc" {
20
20
enable_dns_hostnames = true
21
21
}
22
22
23
+ resource "aws_security_group_rule" "eks-worker-ingress-self" {
24
+ description = " Allow node to communicate with each other"
25
+ from_port = 0
26
+ protocol = " -1"
27
+ security_group_id = aws_security_group. nodes . id
28
+ source_security_group_id = aws_security_group. nodes . id
29
+ to_port = 65535
30
+ type = " ingress"
31
+ }
32
+
33
+ resource "aws_security_group_rule" "eks-worker-ingress-cluster" {
34
+ description = " Allow worker Kubelets and pods to receive communication from the cluster control plane"
35
+ from_port = 1025
36
+ protocol = " tcp"
37
+ security_group_id = aws_security_group. nodes . id
38
+ source_security_group_id = aws_security_group. nodes . id
39
+ to_port = 65535
40
+ type = " ingress"
41
+ }
42
+
43
+ # ## Worker Node Access to EKS Master
44
+ resource "aws_security_group_rule" "eks-cluster-ingress-node-https" {
45
+ description = " Allow pods to communicate with the cluster API Server"
46
+ from_port = 443
47
+ protocol = " tcp"
48
+ security_group_id = aws_security_group. nodes . id
49
+ source_security_group_id = aws_security_group. nodes . id
50
+ to_port = 443
51
+ type = " ingress"
52
+ }
53
+
54
+
23
55
resource "aws_security_group" "nodes" {
24
56
name = " nodes-sg-${ var . cluster_name } "
25
57
vpc_id = module. vpc . vpc_id
26
58
27
- ingress {
28
- from_port = 0
29
- to_port = 0
30
- protocol = " -1"
31
- cidr_blocks = [" 0.0.0.0/0" ]
32
- }
33
-
34
59
egress {
35
60
from_port = 0
36
61
to_port = 0
Original file line number Diff line number Diff line change 6
6
init :
7
7
@terraform init
8
8
9
+ touch-kubeconfig :
10
+ @touch kubeconfig
11
+
12
+ cleanup-kubeconfig :
13
+ @rm kubeconfig
14
+
9
15
.PHONY : plan
10
- plan : plan-cluster plan-cm-edns
16
+ plan : touch-kubeconfig plan-cluster plan-cm-edns cleanup-kubeconfig
11
17
12
18
.PHONY : apply
13
19
apply : apply-cluster apply-tools
14
20
15
21
.PHONY : destroy
16
22
destroy : destroy-tools destroy-cluster
17
23
24
+ .PHONY : refresh
25
+ refresh :
26
+ @echo " Refreshing terraform state"
27
+ @terraform refresh
28
+ @echo " "
29
+ @echo " Done!"
30
+
18
31
.PHONY : output
19
- output : output-done-msg output-url output-nameservers output-registry output-database output-storage output-issuer
32
+ output : refresh output-done-msg output-url output-nameservers output-registry output-database output-storage output-issuer
20
33
21
34
output-done-msg :
35
+ @echo " "
36
+ @echo " "
22
37
@echo " =========================="
23
38
@echo " 🎉🥳🔥🧡🚀"
24
- @echo " Your cloud infrastructure is ready to install Gitpod. Please visit"
39
+ @echo " Your AWS cloud infrastructure is ready to install Gitpod. Please visit"
25
40
@echo " https://www.gitpod.io/docs/self-hosted/latest/getting-started#step-4-install-gitpod"
26
41
@echo " for your next steps."
27
42
@echo " ================="
You can’t perform that action at this time.
0 commit comments