2018-05-23 21:04:25 +02:00
|
|
|
apiVersion: apps/v1beta2
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2018-05-29 10:10:05 +02:00
|
|
|
name: {{ template "httpd.fullname" . }}
|
2018-05-23 21:04:25 +02:00
|
|
|
labels:
|
2018-05-29 10:10:05 +02:00
|
|
|
app: {{ template "httpd.name" . }}
|
|
|
|
chart: {{ template "httpd.chart" . }}
|
2018-05-23 21:04:25 +02:00
|
|
|
release: {{ .Release.Name }}
|
|
|
|
heritage: {{ .Release.Service }}
|
|
|
|
spec:
|
|
|
|
replicas: {{ .Values.replicaCount }}
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2018-05-29 10:10:05 +02:00
|
|
|
app: {{ template "httpd.name" . }}
|
2018-05-23 21:04:25 +02:00
|
|
|
release: {{ .Release.Name }}
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2018-05-29 10:10:05 +02:00
|
|
|
app: {{ template "httpd.name" . }}
|
2018-05-23 21:04:25 +02:00
|
|
|
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
|
2018-06-22 22:50:21 +02:00
|
|
|
env:
|
|
|
|
- name: SERVER_NAME
|
2018-06-23 15:07:16 +02:00
|
|
|
value: "{{ .Values.ingress.hosts[0].name }}"
|
2018-06-22 22:50:21 +02:00
|
|
|
- name: PROXY_SERVICE
|
2018-06-23 14:45:37 +02:00
|
|
|
value: "{{ .Values.httpd.proxy }}"
|
2018-05-23 21:04:25 +02:00
|
|
|
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 }}
|