Failure to build Functions
Symptom
You have issues when building your Function.
Cause
In its default configuration, Serverless uses persistent volumes as the internal registry to store Docker images for Functions. The default storage size of such a volume is 20 GB. When this storage becomes full, you will have issues with building your Functions.
Remedy
As a workaround, increase the default capacity up to a maximum of 100 GB by editing the serverless-docker-registry
PersistentVolumeClaim (PVC) object on your cluster.
Edit the
serverless-docker-registry
PVC:Click to copykubectl edit pvc -n kyma-system serverless-docker-registryChange the value of spec.resources.requests.storage to higher, such as 30 GB, to increase the PVC capacity:
Click to copy...spec:resources:requests:storage: 30GiSave the changes and wait for a few minutes. Use this command to check if the CAPACITY of the
serverless-docker-registry
PVC has changed as expected:Click to copykubectl get pvc serverless-docker-registry -n kyma-systemYou will get this result:
Click to copyNAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGEserverless-docker-registry Bound pvc-a69b96hc-ahbc-k85d-0gh6-19gkcr4yns4k 30Gi RWO standard 23d
If the value of the storage does not change, restart the Pod to which this PVC is bound to finish the volume resize.
To do this, follow these steps:
List all available Pods in the
kyma-system
Namespace:Click to copykubectl get pods -n kyma-systemSearch for the Pod with the
serverless-docker-registry-{UNIQUE_ID}
name and delete it. See the example below:Click to copykubectl delete pod serverless-docker-registry-6869bd57dc-9tqxp -n kyma-systemCAUTION: Do not remove Pods named
serverless-docker-registry-self-signed-cert-{UNIQUE_ID}
.Search for the
serverless-docker-registry
PVC again to check that the capacity was resized:Click to copykubectl get pvc serverless-docker-registry -n kyma-system