diff --git a/.gitlab/review.yaml b/.gitlab/review.yaml index 870ff001581d3c79d57e18274cb463f8362b1fb2..685b7d09f815ee8099a191b22c849ff5cb4be3a9 100644 --- a/.gitlab/review.yaml +++ b/.gitlab/review.yaml @@ -1,3 +1,6 @@ +# Which App Environment to set on startup +environment: development + ingress: annotations: kubernetes.io/tls-acme: "true" diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index e51b462a414d9660b1509cd3a4ce70716b56257b..5acdfa6bd99061fa26c45d8310fec118802917fb 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -70,6 +70,78 @@ spec: cpu: 500m memory: 500M limits: + - name: scheduler + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ template "fpm_image" . }}" + command: ["/usr/local/bin/php"] + args: ["artisan", "schedule:work"] + imagePullPolicy: {{ .Values.image.fpm.pullPolicy }} + env: + - name: APP_ENV + value: {{ .Values.environment }} + volumeMounts: + - name: secrets + mountPath: /metager/metager_app/.env + subPath: ENV_PRODUCTION + readOnly: true + ports: + - name: http + containerPort: 8080 + protocol: TCP + livenessProbe: + httpGet: + path: /health-check/liveness-scheduler + port: http + readinessProbe: + httpGet: + path: /health-check/liveness-scheduler + port: http + startupProbe: + httpGet: + path: /health-check/liveness-scheduler + port: http + resources: + requests: + cpu: 100m + memory: 100M + limits: + - name: worker + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ template "fpm_image" . }}" + command: ["/usr/local/bin/php"] + args: ["artisan", "requests:fetcher"] + imagePullPolicy: {{ .Values.image.fpm.pullPolicy }} + env: + - name: APP_ENV + value: {{ .Values.environment }} + volumeMounts: + - name: secrets + mountPath: /metager/metager_app/.env + subPath: ENV_PRODUCTION + readOnly: true + ports: + - name: http + containerPort: 8080 + protocol: TCP + livenessProbe: + httpGet: + path: /health-check/liveness-worker + port: http + readinessProbe: + httpGet: + path: /health-check/liveness-worker + port: http + startupProbe: + httpGet: + path: /health-check/liveness-worker + port: http + resources: + requests: + cpu: 500m + memory: 100M + limits: - name: nginx securityContext: {{- toYaml .Values.securityContext | nindent 12 }} diff --git a/chart/values.yaml b/chart/values.yaml index 11d627401301eb7bbba3ef61b663bed8f896eedf..9a51d5a77dfef79c552699ec125aecc8e4f4aa95 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -4,9 +4,6 @@ replicaCount: 1 -# Which App Environment to set on startup -environment: development - image: pullPolicy: IfNotPresent fpm: