From e7d3e2e8dad77e75fe47bc48dac72d10ed674f41 Mon Sep 17 00:00:00 2001 From: Noah Lancien Date: Fri, 5 Jan 2024 12:13:57 +0100 Subject: [PATCH] Fixed manifest.yaml tabulations --- deployment/manifest.yaml | 115 ++++++++++++++++++++------------------- 1 file changed, 58 insertions(+), 57 deletions(-) diff --git a/deployment/manifest.yaml b/deployment/manifest.yaml index 9005e0c..b288bb7 100644 --- a/deployment/manifest.yaml +++ b/deployment/manifest.yaml @@ -84,6 +84,7 @@ spec: persistentVolumeClaim: claimName: ggw-${CI_PROJECT_NAME}-pvc-storage + --- apiVersion: v1 kind: Service @@ -141,35 +142,35 @@ spec: affinity: podAffinity: requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: app - operator: In - values: - - ggw-${CI_PROJECT_NAME}-app - topologyKey: "kubernetes.io/hostname" - namespaces: [$KUBE_NAMESPACE] + - labelSelector: + matchExpressions: + - key: app + operator: In + values: + - ggw-${CI_PROJECT_NAME}-app + topologyKey: "kubernetes.io/hostname" + namespaces: [$KUBE_NAMESPACE] containers: - - name: ggw-${CI_PROJECT_NAME}-scheduled - image: $IMAGE_TAG - imagePullPolicy: IfNotPresent - command: - - "php" - args: - - "artisan" - - "schedule:run" - envFrom: - - configMapRef: - name: ggw-${CI_PROJECT_NAME}-config-map - volumeMounts: - - name: storage - mountPath: /app/srcs/storage - imagePullSecrets: - - name: docker-registry-credentials - volumes: + - name: ggw-${CI_PROJECT_NAME}-scheduled + image: $IMAGE_TAG + imagePullPolicy: IfNotPresent + command: + - "php" + args: + - "artisan" + - "schedule:run" + envFrom: + - configMapRef: + name: ggw-${CI_PROJECT_NAME}-config-map + volumeMounts: - name: storage - persistentVolumeClaim: - claimName: ggw-${CI_PROJECT_NAME}-pvc-storage + mountPath: /app/srcs/storage + imagePullSecrets: + - name: docker-registry-credentials + volumes: + - name: storage + persistentVolumeClaim: + claimName: ggw-${CI_PROJECT_NAME}-pvc-storage securityContext: runAsUser: 33 runAsGroup: 33 @@ -193,42 +194,42 @@ spec: app: ggw-${CI_PROJECT_NAME}-app-queue spec: affinity: - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: - key: app operator: In values: - - ggw-${CI_PROJECT_NAME}-app - topologyKey: "kubernetes.io/hostname" - namespaces: [$KUBE_NAMESPACE] + - ggw-${CI_PROJECT_NAME}-app + topologyKey: "kubernetes.io/hostname" + namespaces: [$KUBE_NAMESPACE] containers: - - name: ggw-${CI_PROJECT_NAME}-container-queue - image: "registry.s-web.fr/ldc-web/projets/op-insta:latest" - command: - - php - args: - - artisan - - queue:work - - --max-jobs=200 - - --sleep=3 - - --tries=3 - imagePullPolicy: IfNotPresent - envFrom: - - configMapRef: - name: ggw-${CI_PROJECT_NAME}-config-map - volumeMounts: - - name: storage - mountPath: /app/srcs/storage - imagePullSecrets: - - name: docker-registry-credentials - volumes: + - name: ggw-${CI_PROJECT_NAME}-container-queue + image: "registry.s-web.fr/ldc-web/projets/op-insta:latest" + command: + - php + args: + - artisan + - queue:work + - --max-jobs=200 + - --sleep=3 + - --tries=3 + imagePullPolicy: IfNotPresent + envFrom: + - configMapRef: + name: ggw-${CI_PROJECT_NAME}-config-map + volumeMounts: - name: storage - persistentVolumeClaim: - claimName: ggw-${CI_PROJECT_NAME}-pvc-storage + mountPath: /app/srcs/storage + imagePullSecrets: + - name: docker-registry-credentials + volumes: + - name: storage + persistentVolumeClaim: + claimName: ggw-${CI_PROJECT_NAME}-pvc-storage securityContext: runAsUser: 33 runAsGroup: 33 fsGroup: 33 - fsGroupChangePolicy: "OnRootMismatch" + fsGroupChangePolicy: "OnRootMismatch" \ No newline at end of file