1
0
Fork 0
molgenis-ops-docker-helm/httpd/v1.0.0/templates/deployment.yaml

52 lines
1.3 KiB
YAML
Raw Normal View History

apiVersion: apps/v1beta2
kind: Deployment
metadata:
2018-05-29 10:10:05 +02:00
name: {{ template "httpd.fullname" . }}
labels:
2018-05-29 10:10:05 +02:00
app: {{ template "httpd.name" . }}
chart: {{ template "httpd.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
2018-05-29 10:10:05 +02:00
app: {{ template "httpd.name" . }}
release: {{ .Release.Name }}
template:
metadata:
labels:
2018-05-29 10:10:05 +02:00
app: {{ template "httpd.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 }}