• About Us
  • Contact Us
  • Advertise
  • Privacy Policy
  • Guest Post
No Result
View All Result
Digital Phablet
  • Home
  • NewsLatest
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones
  • AI
  • Reviews
  • Interesting
  • How To
  • Home
  • NewsLatest
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones
  • AI
  • Reviews
  • Interesting
  • How To
No Result
View All Result
Digital Phablet
No Result
View All Result

Home » How to Set Up AWS EKS & EFS for Batch Computing

How to Set Up AWS EKS & EFS for Batch Computing

Emily Smith by Emily Smith
February 25, 2026
in How To
Reading Time: 1 min read
A A
AWS Security: Handling Sophisticated Attacks & Collaborating with Authorities
ADVERTISEMENT

Select Language:

Here’s a simple way to use persistent storage with AWS Batch on EKS, especially if you’re aiming to mount an existing Kubernetes Persistent Volume Claim (PVC).

ADVERTISEMENT

First, understand that AWS Batch on EKS now supports mounting an existing PVC directly in the job definition. This means you don’t need to rely on HostPath makeshift storage. However, be aware that the CDK’s EksVolume might not currently support PVCs through the high-level APIs. Instead, you can use a lower-level approach with CfnJobDefinition to specify your PVC until CDK updates its support.

Start by creating your persistent storage in the Kubernetes cluster. The easiest method is to define a Persistent Volume (PV) and a Persistent Volume Claim (PVC) pointing to an Elastic File System (EFS). Here’s an example using a static PV:

yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: efs-pv
spec:
capacity:
storage: 100Gi
volumeMode: Filesystem
accessModes:

ADVERTISEMENT
  • ReadWriteMany
    persistentVolumeReclaimPolicy: Retain
    csi:
    driver: efs.csi.aws.com
    volumeHandle: fs-12345678

    apiVersion: v1
    kind: PersistentVolumeClaim
    metadata:
    name: efs-pvc
    spec:
    accessModes:

  • ReadWriteMany
    resources:
    requests:
    storage: 100Gi
    volumeName: efs-pv

Apply this configuration with:

bash
kubectl apply -f efs-pv-pvc.yaml

Once your PVC is ready, you can reference it in your Batch job definition. For CLI users, define your job like this:

json
{
“jobDefinitionName”: “eks-efs-job”,
“type”: “container”,
“platformCapabilities”: [“EKS”],
“eksProperties”: {
“podProperties”: {
“containers”: [{
“name”: “app”,
“image”: “public.ecr.aws/amazonlinux/amazonlinux:2”,
“command”: [“bash”,”-lc”,”df -h; ls -la /mnt/efs; sleep 30″],
“volumeMounts”: [{ “name”: “efsvol”, “mountPath”: “/mnt/efs” }]
}],
“volumes”: [{
“name”: “efsvol”,
“persistentVolumeClaim”: { “claimName”: “efs-pvc”, “readOnly”: false }
}]
}
}
}

Register the job definition:

ADVERTISEMENT

bash
aws batch register-job-definition –cli-input-json file://jobdef.json

And then submit your job:

bash
aws batch submit-job –job-name test-efs –job-queue YOUR_QUEUE –job-definition eks-efs-job

If you’re using CDK, note that support for PVCs might not be fully integrated yet. You can work around this by using a low-level CloudFormation resource (CfnJobDefinition) to specify the PVC in your job’s volume configuration, allowing you to mount existing storage.

This approach gives you a reliable way to connect your Batch jobs with persistent storage, making data sharing and storage management much simpler on AWS EKS.

ChatGPT ChatGPT Perplexity AI Perplexity Gemini AI Logo Gemini AI Grok AI Logo Grok AI
Google Banner
ADVERTISEMENT
Emily Smith

Emily Smith

Emily is a digital marketer in Austin, Texas. She enjoys gaming, playing guitar, and dreams of traveling to Japan with her golden retriever, Max.

Related Posts

AI

$340.9 Billion! World’s Highest Valued AI Coding Tool Launched, Huang Renxun Invests

April 18, 2026
Every Outfit and How to Complete Them in Pragmata
Gaming

Every Outfit and How to Complete Them in Pragmata

April 18, 2026
AI

Claude Launches “Figma Killer,” Design Stocks Drop

April 18, 2026
AWS Security: Handling Sophisticated Attacks & Collaborating with Authorities
How To

How to Overcome Repeated AWS Activate Rejections Despite Meets All Criteria

April 18, 2026
Next Post

Ushu Launches First Big Robot of the Year, Handles 440 Pounds

  • About Us
  • Contact Us
  • Advertise
  • Privacy Policy
  • Guest Post

© 2026 Digital Phablet

No Result
View All Result
  • Home
  • News
  • Technology
    • Education Tech
    • Home Tech
    • Office Tech
    • Fintech
    • Digital Marketing
  • Social Media
  • Gaming
  • Smartphones

© 2026 Digital Phablet