Hello all, is there a way to tell Flyte to use a P...
# ask-the-community
p
Hello all, is there a way to tell Flyte to use a Persistent Volume Claim for storage? I'm deploying on AWS EKS. I don't see an option for that in the Helm chart (https://github.com/flyteorg/flyte/blob/master/charts/flyte-core/values-eks.yaml). Thank you.
EDIT: for those running into ephemeral-storage issues changing the PVCs mount path to
/tmp
did the trick for me. Posting the solution for posterity: At the Pod template level:
Copy code
V1PodSpec(
        containers=[
            V1Container(
                name="primary",
                volume_mounts=[
                    V1VolumeMount(
                        name="volume",
                        mount_path="/tmp",
                    )
                ],
            ),
        ],
        volumes=[
            V1Volume(
                name="volume",
                persistent_volume_claim=V1PersistentVolumeClaimVolumeSource(claim_name="pv-claim"),
            )
        ],
    )
This resolves this error:
Copy code
[1/1] currentAttempt done. Last Error: USER::The node was low on resource: ephemeral-storage. Container primary was using 1079476Ki, which exceeds its request of 0. 
[primary] terminated with exit code (137). Reason [Error]. Message: 
.