github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/jobspec/test-fixtures/tg-service-connect-gateway-ingress.hcl (about)

     1  job "connect_gateway_ingress" {
     2    group "group" {
     3      service {
     4        name = "ingress-gateway-service"
     5  
     6        connect {
     7          gateway {
     8            proxy {
     9              connect_timeout                     = "3s"
    10              envoy_gateway_bind_tagged_addresses = true
    11              envoy_gateway_bind_addresses "listener1" {
    12                address = "10.0.0.1"
    13                port    = 8888
    14              }
    15              envoy_gateway_bind_addresses "listener2" {
    16                address = "10.0.0.2"
    17                port    = 8889
    18              }
    19              envoy_gateway_no_default_bind = true
    20              config {
    21                foo = "bar"
    22              }
    23            }
    24            ingress {
    25              tls {
    26                enabled = true
    27              }
    28  
    29              listener {
    30                port     = 8001
    31                protocol = "tcp"
    32                service {
    33                  name  = "service1"
    34                  hosts = ["127.0.0.1:8001", "[::1]:8001"]
    35                }
    36                service {
    37                  name  = "service2"
    38                  hosts = ["10.0.0.1:8001"]
    39                }
    40              }
    41  
    42              listener {
    43                port     = 8080
    44                protocol = "http"
    45                service {
    46                  name  = "nginx"
    47                  hosts = ["2.2.2.2:8080"]
    48                }
    49              }
    50            }
    51          }
    52        }
    53      }
    54    }
    55  }