Do not bind upstream with 'ingress' network that is given to all nodes in swarm mode
This commit is contained in:
parent
619943ac1e
commit
6c8009c049
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ upstream {{ $upstream_name }} {
|
||||||
|
|
||||||
{{ range $knownNetwork := $CurrentContainer.Networks }}
|
{{ range $knownNetwork := $CurrentContainer.Networks }}
|
||||||
{{ range $containerNetwork := $container.Networks }}
|
{{ range $containerNetwork := $container.Networks }}
|
||||||
{{ if eq $knownNetwork.Name $containerNetwork.Name }}
|
{{ if (and (ne $containerNetwork.Name "ingress") (eq $knownNetwork.Name $containerNetwork.Name)) }}
|
||||||
## Can be connect with "{{ $containerNetwork.Name }}" network
|
## Can be connect with "{{ $containerNetwork.Name }}" network
|
||||||
|
|
||||||
{{/* If only 1 port exposed, use that */}}
|
{{/* If only 1 port exposed, use that */}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue