Revert "do not create an empty upstream entry for invisible containers"

This commit is contained in:
jpic 2019-07-08 19:31:28 +02:00 committed by GitHub
parent 8c590fc68f
commit 2f5ee5a1b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,9 +142,6 @@ upstream {{ $upstream_name }} {
{{ $address := where $container.Addresses "Port" $port | first }}
{{ template "upstream" (dict "Container" $container "Address" $address "Network" $containerNetwork) }}
{{ end }}
{{ else }}
# Cannot connect to network of this container
server 127.0.0.1 down;
{{ end }}
{{ end }}
{{ end }}