aboutsummaryrefslogtreecommitdiffstats
path: root/tools/k8s/app-deployment/helm/charts/testpmdchart
diff options
context:
space:
mode:
Diffstat (limited to 'tools/k8s/app-deployment/helm/charts/testpmdchart')
-rw-r--r--tools/k8s/app-deployment/helm/charts/testpmdchart/Chart.yaml5
-rw-r--r--tools/k8s/app-deployment/helm/charts/testpmdchart/templates/daemonset.yaml25
-rw-r--r--tools/k8s/app-deployment/helm/charts/testpmdchart/templates/deployment.yaml26
-rw-r--r--tools/k8s/app-deployment/helm/charts/testpmdchart/templates/service.yaml11
-rw-r--r--tools/k8s/app-deployment/helm/charts/testpmdchart/values.yaml20
5 files changed, 87 insertions, 0 deletions
diff --git a/tools/k8s/app-deployment/helm/charts/testpmdchart/Chart.yaml b/tools/k8s/app-deployment/helm/charts/testpmdchart/Chart.yaml
new file mode 100644
index 00000000..85e8f7d0
--- /dev/null
+++ b/tools/k8s/app-deployment/helm/charts/testpmdchart/Chart.yaml
@@ -0,0 +1,5 @@
+apiVersion: v2
+name: testpmdchart
+version: 0.1.0
+appVersion: "1.0"
+description: To deploy test pmd
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 }}
diff --git a/tools/k8s/app-deployment/helm/charts/testpmdchart/templates/deployment.yaml b/tools/k8s/app-deployment/helm/charts/testpmdchart/templates/deployment.yaml
new file mode 100644
index 00000000..6df47ff1
--- /dev/null
+++ b/tools/k8s/app-deployment/helm/charts/testpmdchart/templates/deployment.yaml
@@ -0,0 +1,26 @@
+{{- if eq .Values.kind "Deployment"}}
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: testpmd
+ annotations:
+ k8s.v1.cni.cncf.io/networks: "{{- join "\",\"" .Values.extraInterfaces | toYaml | nindent 8}}"
+spec:
+ selector:
+ matchLabels:
+ app: testpmd
+ replicas: {{ .Values.replicas }}
+ template:
+ metadata:
+ labels:
+ app: testpmd
+ spec:
+ containers:
+ - name: testpmd
+ image: vsperf/dpdkfwd:lakelse
+ imagePullPolicy: IfNotPresent
+ ports:
+ - containerPort: 3000
+ nodeSelector:
+ {{- .Values.nodeSelector.matchLables | toYaml | nindent 12 }}
+{{- end }}
diff --git a/tools/k8s/app-deployment/helm/charts/testpmdchart/templates/service.yaml b/tools/k8s/app-deployment/helm/charts/testpmdchart/templates/service.yaml
new file mode 100644
index 00000000..50f75629
--- /dev/null
+++ b/tools/k8s/app-deployment/helm/charts/testpmdchart/templates/service.yaml
@@ -0,0 +1,11 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: testpmdchart
+spec:
+ type: {{ .Values.service.type }}
+ ports:
+ - port: {{ .Values.service.port }}
+ targetPort: http
+ protocol: TCP
+ name: http
diff --git a/tools/k8s/app-deployment/helm/charts/testpmdchart/values.yaml b/tools/k8s/app-deployment/helm/charts/testpmdchart/values.yaml
new file mode 100644
index 00000000..af6be613
--- /dev/null
+++ b/tools/k8s/app-deployment/helm/charts/testpmdchart/values.yaml
@@ -0,0 +1,20 @@
+# daemonset, deployment
+kind: Deployment
+
+# Nodes to deploy on
+nodeSelector:
+ # matchLables:
+ # key1: value1
+ # key2: value2
+
+# multus
+metacniType: multus
+extraInterfaces:
+ net-attach-def1
+ net-attach-def2
+
+replicas: 1
+
+service:
+ type: NodePort
+ port: 8081