Browse Source

fix: allow control plane ingress to webhook

Docs 4 years ago
parent
commit
ac1c696fdb
1 changed files with 18 additions and 0 deletions
  1. 18 0
      terraform/aws/modules/cluster/main.tf

+ 18 - 0
terraform/aws/modules/cluster/main.tf

@@ -112,6 +112,24 @@ resource "aws_security_group" "additional" {
     ]
     ]
   }
   }
 
 
+  # allow control-plane to access webhook
+  ingress {
+    from_port        = 9443
+    to_port          = 9443
+    protocol         = "tcp"
+    cidr_blocks      = ["0.0.0.0/0"]
+    ipv6_cidr_blocks = ["::/0"]
+  }
+
+  ingress {
+    from_port        = 443
+    to_port          = 443
+    protocol         = "tcp"
+    cidr_blocks      = ["0.0.0.0/0"]
+    ipv6_cidr_blocks = ["::/0"]
+  }
+
+
   # 443, 53, 123 is already allowed
   # 443, 53, 123 is already allowed
   egress {
   egress {
     from_port        = 80
     from_port        = 80