diff options
author | shreyagupta30 <shreyagupta3011@gmail.com> | 2021-09-27 14:35:36 +0530 |
---|---|---|
committer | shreyagupta30 <shreyagupta3011@gmail.com> | 2021-10-11 23:16:53 +0530 |
commit | eef9fef1141c6295b824b884ad86d645cd1c094f (patch) | |
tree | 1d1b6a8b08015eb190bb6cfbd56536ac4f10ad2d /tools/k8s/app-deployment/helm/charts/testpmdchart/templates/daemonset.yaml | |
parent | 17e20bfa70d1a9ce5e6ee6687245e3e22f3633a8 (diff) |
Automated deployment of helm charts with python
This patch adds demo helm charts and a python script that automatically deploys any helm chart of user's choice and print all the useful information about the chart.
Signed-off-by: Shreya Gupta <shreyagupta3011@gmail.com>
Change-Id: I06e3a8012602e09f601f70def386ef267c870e94
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.yaml | 25 |
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 }} |