thirdparty-ops-docker-helm/charts/molgenis-website/templates/deployment.yaml

32 lines
833 B
YAML
Raw Normal View History

2018-11-08 22:18:48 +01:00
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ template "website.fullname" . }}
labels:
app: {{ template "website.name" . }}
chart: {{ template "website.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ template "website.name" . }}
release: {{ .Release.Name }}
template:
metadata:
labels:
app: {{ template "website.name" . }}
release: {{ .Release.Name }}
spec:
containers:
{{- with .Values.website }}
- name: {{ .name }}
image: "{{ .image.repository }}/{{ .image.name }}:{{ .image.tag }}"
imagePullPolicy: {{ .image.pullPolicy }}
ports:
- containerPort: {{ .service.port }}
{{- end }}