aboutsummaryrefslogtreecommitdiffstats
path: root/tools/k8s/app-deployment/helm/charts/testpmdchart/templates/daemonset.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tools/k8s/app-deployment/helm/charts/testpmdchart/templates/daemonset.yaml')
-rw-r--r--tools/k8s/app-deployment/helm/charts/testpmdchart/templates/daemonset.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/k8s/app-deployment/helm/charts/testpmdchart/templates/daemonset.yaml b/tools/k8s/app-deployment/helm/charts/testpmdchart/templates/daemonset.yaml
new file mode 100644
index 00000000..10a812f6
--- /dev/null
+++ b/tools/k8s/app-deployment/helm/charts/testpmdchart/templates/daemonset.yaml
@@ -0,0 +1,25 @@
+{{- if eq .Values.kind "DaemonSet"}}
+apiVersion: apps/v1
+kind: DaemonSet
+metadata:
+ name: testpmd
+ annotations:
+ k8s.v1.cni.cncf.io/networks: "{{- join "\",\"" .Values.extraInterfaces }}"
+spec:
+ selector:
+ matchLabels:
+ app: testpmd
+ template:
+ metadata:
+ labels:
+ app: testpmd
+ spec:
+ containers:
+ - name: testpmd
+ image: ovsperf/dpdkfwd:lakelse
+ imagePullPolicy: IfNotPresent
+ ports:
+ - containerPort: 3000
+ nodeSelector:
+ {{- .Values.nodeSelector.matchLables | toYaml | nindent 12 }}
+{{- end }}