diff options
Diffstat (limited to 'kud/deployment_infra/playbooks')
-rw-r--r-- | kud/deployment_infra/playbooks/configure-ovn4nfv.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/kud/deployment_infra/playbooks/configure-ovn4nfv.yml b/kud/deployment_infra/playbooks/configure-ovn4nfv.yml index f8dabd9d..2d1a11d0 100644 --- a/kud/deployment_infra/playbooks/configure-ovn4nfv.yml +++ b/kud/deployment_infra/playbooks/configure-ovn4nfv.yml @@ -96,3 +96,29 @@ name: ovn4nfvk8s state: started enabled: yes + +- hosts: localhost + pre_tasks: + - name: Load kud variables + include_vars: + file: kud-vars.yml + tasks: + - name: define a CRD network object specification + blockinfile: + path: /tmp/ovn4nfvnetwork.yml + create: yes + block: | + apiVersion: k8s.cni.cncf.io/v1 + kind: NetworkAttachmentDefinition + metadata: + name: ovn-networkobj + spec: + config: '{ + "cniVersion": "0.3.1", + "name": "ovn4nfv-k8s-plugin", + "type": "ovn4nfvk8s-cni" + }' + + - name: create network objects + shell: "/usr/local/bin/kubectl apply -f /tmp/ovn4nfvnetwork.yml" + ignore_errors: True |