Commit 2191d6c1 authored by Mark Harding's avatar Mark Harding

(feat): deploy runners as deployment

No related merge requests found
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "minds.fullname" . }}-runners
labels:
app.kubernetes.io/name: {{ include "minds.name" . }}
helm.sh/chart: {{ include "minds.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
replicas: {{ .Values.runners.replicas }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "minds.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.minds.io/name: {{ template "minds.fullname" . }}-runners
template:
metadata:
labels:
app.kubernetes.io/name: {{ include "minds.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.minds.io/name: {{ template "minds.fullname" . }}-runners
app.minds.io/lastChanged: "1"
spec:
containers:
- name: {{ .Chart.Name }}-runners
image: "{{ .Values.runners.image.repository }}:{{ .Values.runners.image.tag }}"
imagePullPolicy: {{ .Values.runners.image.pullPolicy }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: settings
mountPath: /var/www/Minds/engine/settings.php
subPath: settings.php
- name: secure-certs
mountPath: /var/secure/
readOnly: true
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: settings
configMap:
name: {{ template "minds.fullname" . }}
- name: php-config
configMap:
name: {{ template "minds.fullname" . }}
- name: secure-certs
secret:
secretName: {{ template "minds.fullname" . }}-certs
......@@ -11,6 +11,13 @@ phpfpm:
max_children: 50 #500 on production
max_requests: 200 #20000 on production
runners:
image:
repository: registry.gitlab.com/minds/engine/runners
tag: latest
pullPolicy: Always
replicas: 1
nginx:
image:
repository: nginx
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment