aboutsummaryrefslogtreecommitdiffstats
path: root/tools/k8s/app-deployment/helm/charts/proxchart/templates/daemonset.yaml
diff options
context:
space:
mode:
authorshreyagupta30 <shreyagupta3011@gmail.com>2021-09-27 14:35:36 +0530
committershreyagupta30 <shreyagupta3011@gmail.com>2021-10-11 23:16:53 +0530
commiteef9fef1141c6295b824b884ad86d645cd1c094f (patch)
tree1d1b6a8b08015eb190bb6cfbd56536ac4f10ad2d /tools/k8s/app-deployment/helm/charts/proxchart/templates/daemonset.yaml
parent17e20bfa70d1a9ce5e6ee6687245e3e22f3633a8 (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/proxchart/templates/daemonset.yaml')
-rw-r--r--tools/k8s/app-deployment/helm/charts/proxchart/templates/daemonset.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/k8s/app-deployment/helm/charts/proxchart/templates/daemonset.yaml b/tools/k8s/app-deployment/helm/charts/proxchart/templates/daemonset.yaml
new file mode 100644
index 00000000..e1d3a563
--- /dev/null
+++ b/tools/k8s/app-deployment/helm/charts/proxchart/templates/daemonset.yaml
@@ -0,0 +1,25 @@
+{{- if eq .Values.kind "DaemonSet"}}
+apiVersion: apps/v1
+kind: DaemonSet
+metadata:
+ name: prox
+ annotations:
+ k8s.v1.cni.cncf.io/networks: "{{- join "\",\"" .Values.extraInterfaces }}"
+spec:
+ selector:
+ matchLabels:
+ app: prox
+ template:
+ metadata:
+ labels:
+ app: prox
+ spec:
+ containers:
+ - name: prox
+ image: opnfv/rapid:latest
+ imagePullPolicy: IfNotPresent
+ ports:
+ - containerPort: 3000
+ nodeSelector:
+ {{- .Values.nodeSelector.matchLables | toYaml | nindent 12 }}
+{{- end }}