Sumit Ghosh bbccef7466
Fix/1370 - Updated script related changes for helm 3.x and k8s 1.16.x (#1378)
* Fix for helm 3 and k8s 1.16

* Inclusion of archived directory under k8s

* separate deploy-all powershell script for local Mac OS deployment.
2020-07-28 17:36:43 +05:30

44 lines
1.2 KiB
YAML

apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: {{ template "nosql-data.fullname" . }}
labels:
app: {{ template "nosql-data.name" . }}
chart: {{ template "nosql-data.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ template "nosql-data.name" . }}
release: {{ .Release.Name }}
template:
metadata:
labels:
app: {{ template "nosql-data.name" . }}
release: {{ .Release.Name }}
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 27017
protocol: TCP
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}