From fe510e5a442a6235e263aabeeae026da062d0a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B3=80=EC=A0=95=ED=9B=88?= Date: Tue, 7 Mar 2023 05:15:30 +0000 Subject: [PATCH] =?UTF-8?q?workspace=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/template.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/template/template.yml b/template/template.yml index 7a3d088..86dfdef 100644 --- a/template/template.yml +++ b/template/template.yml @@ -38,6 +38,17 @@ objects: requests: storage: 1Gi storageClassName: '${STORAGE_CLASS}' + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: 'image-pvc-${APP_NAME}' + spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 1Gi + storageClassName: '${STORAGE_CLASS}' - apiVersion: v1 kind: ConfigMap metadata: @@ -169,6 +180,8 @@ objects: workspace: s2i - name: build-pvc workspace: build-pvc + - name: image-pvc + workspace: image-pvc notification: onSuccess: slack: @@ -322,6 +335,9 @@ objects: - name: build-pvc persistentVolumeClaim: claimName: 'build-pvc-${APP_NAME}' + - name: image-pvc + persistentVolumeClaim: + claimName: 'image-pvc-${APP_NAME}' parameters: - description: Application name displayName: AppName