diff options
author | Yibo Cai <yibo.cai@arm.com> | 2018-07-31 13:08:38 +0800 |
---|---|---|
committer | Yibo Cai <yibo.cai@arm.com> | 2018-08-02 10:31:19 +0800 |
commit | 2e2a9c8f10c0b320dd621a86237707acb3441a21 (patch) | |
tree | f41c89561e3cd36034459f485d3f1e4ff7750cc4 /src/arm/cni-deploy/roles/multus/templates | |
parent | 20518dc93167aff1c83bf2995acc3e75e5a02c3d (diff) |
src/arm: add k8s cni deployment tasks
Deploy Multus, SRIOV, Vhostuser(VPP+DPDK) with CRD.
Change-Id: I787d5fd61c75f17d50fbaf8f86c08bdc44c557b8
Signed-off-by: Yibo Cai <yibo.cai@arm.com>
Diffstat (limited to 'src/arm/cni-deploy/roles/multus/templates')
-rw-r--r-- | src/arm/cni-deploy/roles/multus/templates/macvlan-obj.yml.j2 | 22 | ||||
-rw-r--r-- | src/arm/cni-deploy/roles/multus/templates/multus-testpod.yml.j2 | 19 |
2 files changed, 41 insertions, 0 deletions
diff --git a/src/arm/cni-deploy/roles/multus/templates/macvlan-obj.yml.j2 b/src/arm/cni-deploy/roles/multus/templates/macvlan-obj.yml.j2 new file mode 100644 index 0000000..b5a549f --- /dev/null +++ b/src/arm/cni-deploy/roles/multus/templates/macvlan-obj.yml.j2 @@ -0,0 +1,22 @@ +--- +apiVersion: "kubernetes.com/v1" +kind: Network +metadata: + name: macvlan-networkobj +plugin: macvlan +args: '[ + { + "master": "{{ macvlan_master }}", + "mode": "vepa", + "ipam": { + "type": "host-local", + "subnet": "{{ macvlan_subnet }}", + "rangeStart": "{{ macvlan_range_start }}", + "rangeEnd": "{{ macvlan_range_end }}", + "routes": [ + { "dst": "0.0.0.0/0" } + ], + "gateway": "{{ macvlan_gateway }}" + } + } +]' diff --git a/src/arm/cni-deploy/roles/multus/templates/multus-testpod.yml.j2 b/src/arm/cni-deploy/roles/multus/templates/multus-testpod.yml.j2 new file mode 100644 index 0000000..4884846 --- /dev/null +++ b/src/arm/cni-deploy/roles/multus/templates/multus-testpod.yml.j2 @@ -0,0 +1,19 @@ +--- +apiVersion: v1 +kind: Pod +metadata: + name: multus-test + annotations: + networks: '[ + { "name": "flannel-networkobj" }, + { "name": "macvlan-networkobj" } + ]' +spec: + containers: + - name: multus-test + image: "busybox" + command: ["sleep", "100d"] + stdin: true + tty: true + nodeSelector: + kubernetes.io/hostname: "{{ groups['kube-node'][0] }}" |