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/proxchart/templates/deployment.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/proxchart/templates/deployment.yaml')
-rw-r--r-- | tools/k8s/app-deployment/helm/charts/proxchart/templates/deployment.yaml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/k8s/app-deployment/helm/charts/proxchart/templates/deployment.yaml b/tools/k8s/app-deployment/helm/charts/proxchart/templates/deployment.yaml new file mode 100644 index 00000000..235b02cd --- /dev/null +++ b/tools/k8s/app-deployment/helm/charts/proxchart/templates/deployment.yaml @@ -0,0 +1,30 @@ +{{- if eq .Values.kind "Deployment"}} +apiVersion: apps/v1 +kind: Deployment +metadata: + name: prox + annotations: + k8s.v1.cni.cncf.io/networks: "{{- join "\",\"" .Values.extraInterfaces | toYaml | nindent 8}}" +spec: + selector: + matchLabels: + app: prox + replicas: {{ .Values.replicas }} + template: + metadata: + labels: + app: prox + spec: + containers: + - name: prox + image: opnfv/rapid:latest + imagePullPolicy: IfNotPresent + ports: + - containerPort: 3000 + - name: nginx + image: nginx:alpine + ports: + - containerPort: 80 + nodeSelector: + {{- .Values.nodeSelector.matchLables | toYaml | nindent 12 }} +{{- end }} |