diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-06-17 11:57:05 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-06-17 11:57:05 +0200 |
commit | 75372fa6a0e84ca8f3a6d6da4a9b389da4ba0b86 (patch) | |
tree | d3f2991ba794513067280d78eef178ed429584aa /roles/kubernetes/net/kubeguard/node/templates | |
parent | kubernetes: install addon configs into common sub-dir (diff) |
kubernetes: add chaos-at-home test cluster and fix some bugs
Diffstat (limited to 'roles/kubernetes/net/kubeguard/node/templates')
-rw-r--r-- | roles/kubernetes/net/kubeguard/node/templates/kubeguard-peer.service.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/kubernetes/net/kubeguard/node/templates/kubeguard-peer.service.j2 b/roles/kubernetes/net/kubeguard/node/templates/kubeguard-peer.service.j2 index 72b39c3f..0503ca03 100644 --- a/roles/kubernetes/net/kubeguard/node/templates/kubeguard-peer.service.j2 +++ b/roles/kubernetes/net/kubeguard/node/templates/kubeguard-peer.service.j2 @@ -6,7 +6,7 @@ After=kubeguard-interfaces.service {% set pod_ip_self = kubernetes.pod_ip_range | ipsubnet(kubernetes.pod_ip_range_size, kubeguard.node_index[inventory_hostname]) | ipaddr(1) | ipaddr('address') -%} {% set pod_net_peer = kubernetes.pod_ip_range | ipsubnet(kubernetes.pod_ip_range_size, kubeguard.node_index[peer]) -%} -{% set direct_zone = kubeguard.direct_net_zones | direct_net_zone(inventory_hostname, peer) -%} +{% set direct_zone = kubeguard.direct_net_zones | default({}) | direct_net_zone(inventory_hostname, peer) -%} {% if direct_zone %} {% set direct_ip = kubeguard.direct_net_zones[direct_zone].transfer_net | ipaddr(kubeguard.node_index[inventory_hostname]) %} {% set direct_interface = kubeguard.direct_net_zones[direct_zone].node_interface[inventory_hostname] %} |