From eef9fef1141c6295b824b884ad86d645cd1c094f Mon Sep 17 00:00:00 2001 From: shreyagupta30 Date: Mon, 27 Sep 2021 14:35:36 +0530 Subject: 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 Change-Id: I06e3a8012602e09f601f70def386ef267c870e94 --- .../helm/charts/trexchart/templates/daemonset.yaml | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tools/k8s/app-deployment/helm/charts/trexchart/templates/daemonset.yaml (limited to 'tools/k8s/app-deployment/helm/charts/trexchart/templates/daemonset.yaml') diff --git a/tools/k8s/app-deployment/helm/charts/trexchart/templates/daemonset.yaml b/tools/k8s/app-deployment/helm/charts/trexchart/templates/daemonset.yaml new file mode 100644 index 00000000..39d4662f --- /dev/null +++ b/tools/k8s/app-deployment/helm/charts/trexchart/templates/daemonset.yaml @@ -0,0 +1,25 @@ +{{- if eq .Values.kind "DaemonSet"}} +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: trex + annotations: + k8s.v1.cni.cncf.io/networks: "{{- join "\",\"" .Values.extraInterfaces }}" +spec: + selector: + matchLabels: + app: trex + template: + metadata: + labels: + app: trex + spec: + containers: + - name: trex + image: vsperf/trex:lakelse + imagePullPolicy: IfNotPresent + ports: + - containerPort: 3000 + nodeSelector: + {{- .Values.nodeSelector.matchLables | toYaml | nindent 12 }} +{{- end }} -- cgit 1.2.3-korg