aboutsummaryrefslogtreecommitdiffstats
path: root/tools/k8s/app-deployment/helm/charts/proxchart/templates/daemonset.yaml
diff options
context:
space:
mode:
authorSridhar Rao <sridhar.rao@spirent.com>2021-10-12 03:08:51 +0000
committerGerrit Code Review <gerrit@opnfv.org>2021-10-12 03:08:51 +0000
commit212d0f7165d26d97823852992ed261529e095b69 (patch)
tree08452f54770ad640a28876d89f2bfa1cfa8d48ed /tools/k8s/app-deployment/helm/charts/proxchart/templates/daemonset.yaml
parentb298cbad4e39cfacead75debcb743e9b844efbd0 (diff)
parenteef9fef1141c6295b824b884ad86d645cd1c094f (diff)
Merge "Automated deployment of helm charts with python"
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 }}