The limit for emptyDir on AKS is 50GB
@HansEdert I think this statement is not true anymore.
I have tested LTS 2024.09 with AKS 1.29 with default setting emptyDir, I could write 100GB data to SASWORK without problems.
hostPath
If we create node pool with KubeletDiskType=Temporary , emptyDir will pickup SSD as volume, there is no need to mount SSD using hosPath.
link:feat: Add OS and Kubelet disk type options. by Carus11 · Pull Request #385 · sassoftware/viya4-iac-azure
Quata on SASWORK
I fount that we can set a quota on emptyDir by setting limits of phemeral-storage on podtemplate definition.
Example:
I setup a ephemeral-storage limit as 50 GB, sas-compute-server-xxx pod will be deleted by k8s when SASWORK exceed 50GB.
---
apiVersion: builtin
kind: PatchTransformer
metadata:
name: add-viya-volume-requests-limits-sas-batch-cmd-pod-template
# Ensure resources exist
patch: |-
- op: add
path: /template/spec/containers/0/resources
value: {}
# Ensure requests exist
- op: add
path: /template/spec/containers/0/resources/requests
value: {}
# Add ephemeral-storage to requests if missing
- op: add
path: /template/spec/containers/0/resources/requests/ephemeral-storage
value: "1Gi"
# Ensure limits exist
- op: add
path: /template/spec/containers/0/resources/limits
value: {}
# Add ephemeral-storage to limits if missing
- op: add
path: /template/spec/containers/0/resources/limits/ephemeral-storage
value: "50Gi"
target:
kind: PodTemplate
labelSelector: "sas.com/pod-container-image=sas-programming-environment"
... View more