浏览代码

add consul rules too

Chris Mague 5 年之前
父节点
当前提交
cdf4864111
共有 1 个文件被更改,包括 42 次插入0 次删除
  1. 42 0
      variables.tf

+ 42 - 0
variables.tf

@@ -208,6 +208,48 @@ variable "internal-rules" {
       protocol  = "udp"
       comment   = "Let UDP out to the VPC"
     },
+    {
+      type = "ingress"
+      from_port = "8301"
+      to_port   = "8301"
+      protocol  = "udp"
+      comment   = "Consul Traffic Gossip"
+    },
+    {
+      type = "ingress"
+      from_port = "8301"
+      to_port   = "8301"
+      protocol  = "tcp"
+      comment   = "Consul Traffic Gossip"
+    },
+    {
+      type = "ingress"
+      from_port = "8600"
+      to_port   = "8600"
+      protocol  = "tcp"
+      comment   = "Consul Traffic DNS"
+    },
+    {
+      type = "ingress"
+      from_port = "8600"
+      to_port   = "8600"
+      protocol  = "udp"
+      comment   = "Consul Traffic DNS"
+    },
+    {
+      type = "ingress"
+      from_port = "8400"
+      to_port   = "8400"
+      protocol  = "tcp"
+      comment   = "Consul Traffic RPC"
+    },
+    {
+      type = "ingress"
+      from_port = "8500"
+      to_port   = "8500"
+      protocol  = "tcp"
+      comment   = "Consul Traffic HTTP"
+    },
     ]
   }