1
0
molgenis-ops-docker-helm/molgenis-vault/templates/deployment.yaml
2018-09-07 21:46:04 +02:00

52 lines
1.4 KiB
YAML

apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: {{ template "molgenis-vault.fullname" . }}
labels:
app: {{ template "molgenis-vault.name" . }}
chart: {{ template "molgenis-vault.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ template "molgenis-vault.name" . }}
release: {{ .Release.Name }}
template:
metadata:
labels:
app: {{ template "molgenis-vault.name" . }}
release: {{ .Release.Name }}
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
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 }}