add nodeport and vfioveth copy daemon

Change-Id: Ia9e52142d13c78ac3bb147b6425e2c686c8a3182
diff --git a/bess-upf/Chart.yaml b/bess-upf/Chart.yaml
index 86b68d0..2313b27 100644
--- a/bess-upf/Chart.yaml
+++ b/bess-upf/Chart.yaml
@@ -7,4 +7,4 @@
 name: bess-upf
 icon: https://guide.opencord.org/logos/cord.svg
 
-version: 0.1.1
+version: 0.1.2
diff --git a/bess-upf/templates/init-net.yaml b/bess-upf/templates/init-net.yaml
new file mode 100644
index 0000000..4d69a28
--- /dev/null
+++ b/bess-upf/templates/init-net.yaml
@@ -0,0 +1,38 @@
+{{/*
+# Copyright 2022-present Open Networking Foundation
+
+# SPDX-License-Identifier: Apache-2.0
+*/}}
+
+---
+apiVersion: apps/v1
+kind: DaemonSet
+metadata:
+  name: init-net
+spec:
+  selector:
+    matchLabels:
+      name: init-net
+  template:
+    metadata:
+      labels:
+        name: init-net
+    spec:
+      containers:
+      - name: init-sriov-plugin
+        image: docker.io/omecproject/omec-cni:1.1.4
+        imagePullPolicy: IfNotPresent
+        command: ["/bin/bash", "-c"]
+        args:
+          - >
+            yes | cp /tmp/cni/bin/{vfioveth,static} /host/opt/cni/bin/;
+            chmod +x /host/opt/cni/bin/vfioveth;
+            chmod +x /host/opt/cni/bin/static;
+            trap : TERM INT; sleep infinity & wait;
+        volumeMounts:
+          - name: cni-bin
+            mountPath: /host/opt/cni/bin
+      volumes:
+      - name: cni-bin
+        hostPath:
+          path: /opt/cni/bin
diff --git a/bess-upf/templates/service-upf.yaml b/bess-upf/templates/service-upf.yaml
index e7a2cbc..30d50c8 100644
--- a/bess-upf/templates/service-upf.yaml
+++ b/bess-upf/templates/service-upf.yaml
@@ -27,6 +27,11 @@
   - name: pfcp
     protocol: UDP
     port: 8805
+{{- if eq .Values.service.type "NodePort" }}
+{{- if .Values.service.nodePort }}
+    nodePort: {{ .Values.service.nodePort }}
+{{- end }}
+{{- end }}
 ---
 apiVersion: v1
 kind: Service