diff --git a/manifest.yaml b/manifest.yaml index 57bda240..762b4c19 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -73,34 +73,34 @@ spec: app: ${CI_PROJECT_PATH_SLUG}-app spec: containers: - - name: ${CI_PROJECT_PATH_SLUG}-container - image: $IMAGE_TAG - envFrom: - - configMapRef: - name: ${CI_PROJECT_PATH_SLUG}-config-map - volumeMounts: - - name: storage - mountPath: /app/srcs/storage - - name: ${CI_PROJECT_PATH_SLUG}-queue-worker + - name: ${CI_PROJECT_PATH_SLUG}-container image: $IMAGE_TAG - lifecycle: - preStop: - exec: - command: ["/bin/sh","-c","kill -s TERM 1; while test $(ps ax | grep -v grep | grep bash | wc -l) -gt 0; do sleep 2s; done"] - resources: - limits: - memory: 512Mi - cpu: "1" - command: - - "bash" - args: - - "k8s-queues.sh" envFrom: - configMapRef: name: ${CI_PROJECT_PATH_SLUG}-config-map volumeMounts: - name: storage mountPath: /app/srcs/storage + - name: ${CI_PROJECT_PATH_SLUG}-queue-worker + image: $IMAGE_TAG + lifecycle: + preStop: + exec: + command: ["/bin/sh","-c","kill -s TERM 1; while test $(ps ax | grep -v grep | grep bash | wc -l) -gt 0; do sleep 2s; done"] + resources: + limits: + memory: 512Mi + cpu: "1" + command: + - "bash" + args: + - "k8s-queues.sh" + envFrom: + - configMapRef: + name: ${CI_PROJECT_PATH_SLUG}-config-map + volumeMounts: + - name: storage + mountPath: /app/srcs/storage imagePullSecrets: - name: docker-registry-credentials securityContext: