You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-guide/creating-application/overview.md
+60-1Lines changed: 60 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,4 +47,63 @@ Click **Save**. The application will be moved to the selected project.
47
47
* To remove the tags from propagation, click the symbol <imgsrc="https://devtron-public-asset.s3.us-east-2.amazonaws.com/images/creating-application/propagate-dark.jpg"height="10"> again.
48
48
* Click `Save`.
49
49
50
-
The changes in the tags will be reflected in the `Tags` on the `Overview` section.
50
+
The changes in the tags will be reflected in the `Tags` on the `Overview` section.
51
+
52
+
53
+
## Configure PersistentVolumeClaim (PVC) for Build Time Optimization
54
+
55
+
A PersistentVolumeClaim (PVC) volume is a request for storage, which is used to mount a PersistentVolume (PV) into a Pod. In order to optimize build time, you can configure PVC in your application.
56
+
57
+
If you want to optimize build time for the multiple target platforms (e.g., arm64, amd64), mounting a PVC will provide volume directly to a pod which helps in shorter build time by storing build cache. Mounting a PVC into a pod will provide storage for build cache which will not impact the normal build where the image is built on the basis of architecture and operating system of the K8s node on which CI is running.
58
+
59
+
### Create PVC file
60
+
61
+
* The following configuration file describes persistent volume claim e.g.,`cache-pvc.yaml`, where you have to define the metadata `name` and `storageClassname`.
62
+
63
+
```bash
64
+
apiVersion: v1
65
+
kind: PersistentVolumeClaim
66
+
metadata:
67
+
name: cache-pvc # here comes the name of PVC
68
+
spec:
69
+
accessModes:
70
+
- ReadWriteOnce
71
+
storageClassName: # here comes storage class name
72
+
resources:
73
+
requests:
74
+
storage: 30Gi
75
+
```
76
+
77
+
* Create the PersistentVolumeClaim by running the following command:
For more detail, refer [Kubernetes PVC](https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/#create-a-persistentvolumeclaim).
84
+
85
+
86
+
## Configure PVC
87
+
88
+
In order to configure PVC:
89
+
* Go to the `Overview` section of your application.
* For app level PVC mounting, enter the following:<ul><li>key:`devtron.ai/ci-pvc-all`</li><li>value: metadata name (e.g., `cache-pvc)` which you define on the [PVC template](#create-pvc-file).</li></ul>`Note`: This PVC mounting will impact all the build pipilines of the application.
97
+
* For pipeline level, enter the following:<ul><li>key:`devtron.ai/ci-pvc-{pipelinename}`</li><li>value: metadata name which you define on the [PVC template](#create-pvc-file).</li></ul>`Note`: This PVC mounting will impact only the particular build pipeline.
98
+
99
+
To know the `pipelinename` detail, go to the `App Configutation`, click `Workflow Editor` the pipeline name will be on the `Build` pipeline as shown below.
0 commit comments