X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ansible%2Froles%2Fflannel%2Ftemplates%2Fflannel-ds.yaml;h=73881e669c380e10fb0361f706828563b95883f8;hb=refs%2Fchanges%2F88%2F1688%2F7;hp=e50f855cb5089b0bacd6fe42ea5250cbf5b67c97;hpb=d93171dfb987e103f84149d6b54d9350a078bf9e;p=ta%2Fcaas-danm.git diff --git a/ansible/roles/flannel/templates/flannel-ds.yaml b/ansible/roles/flannel/templates/flannel-ds.yaml index e50f855..73881e6 100644 --- a/ansible/roles/flannel/templates/flannel-ds.yaml +++ b/ansible/roles/flannel/templates/flannel-ds.yaml @@ -1,3 +1,4 @@ +#jinja2: lstrip_blocks: True {# Copyright 2019 Nokia @@ -14,7 +15,7 @@ See the License for the specific language governing permissions and limitations under the License. #} --- -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: DaemonSet metadata: name: flannel-ds @@ -50,7 +51,9 @@ spec: args: - --ip-masq - --kube-subnet-mgr - - --iface={{ networking.infra_internal.interface }} + {% for interface in flannel_interfaces | default([]) %} + - --iface={{ interface }} + {% endfor %} securityContext: privileged: true env: