8

Until now the only solution that I found is use --config-yaml, something like that

envoy -c /etc/service-envoy.yaml \
    --config-yaml "'static_resources': {
    'clusters': [
      {
        'name': 'jaeger',
        'connect_timeout': '1s',
        'type': 'strict_dns',
        'lb_policy': 'round_robin',
        'hosts': [
          {
            'socket_address': {
              'address': '$JAEGER_HOST',
              'port_value': 9411
            }
          }
        ]
      }
    ]
  }"
JuanPablo
  • 21,182
  • 32
  • 102
  • 155

1 Answers1

5

I found the solution in this article, using envsubst

https://blog.markvincze.com/how-to-use-envoy-as-a-load-balancer-in-kubernetes/

cat /tmpl/envoy.yaml.tmpl | envsubst \$ENVOY_LB_ALG,\$SERVICE_NAME > /etc/envoy.yaml
JuanPablo
  • 21,182
  • 32
  • 102
  • 155