microscopic-accountant-76829
05/16/2025, 4:46 PMcreamy-pencil-82913
05/16/2025, 5:10 PMcreamy-pencil-82913
05/16/2025, 5:10 PMmicroscopic-accountant-76829
05/16/2025, 5:14 PMapiVersion: v1
kind: Pod
metadata:
name: ephemeral
spec:
securityContext:
runAsGroup: 10001
runAsNonRoot: true
runAsUser: 10001
supplementalGroups:
- 1000
containers:
- name: fame-fs
image: <http://mcr.microsoft.com/dotnet/aspnet:8.0-noble|mcr.microsoft.com/dotnet/aspnet:8.0-noble>
command: ["sh", "-c", "tail -f /dev/null"]
imagePullPolicy: IfNotPresent
resources:
requests:
memory: "1Gi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "250m"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
volumeMounts:
- mountPath: /tmp
name: tmp
volumes:
- name: tmp
ephemeral:
volumeClaimTemplate:
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: "5Gi"
creamy-pencil-82913
05/16/2025, 6:29 PMcreamy-pencil-82913
05/16/2025, 6:32 PMcreamy-pencil-82913
05/16/2025, 6:33 PMmicroscopic-accountant-76829
05/16/2025, 7:51 PMcreamy-pencil-82913
05/16/2025, 9:42 PMThefield controls whereemptyDir.medium
volumes are stored. By defaultemptyDir
volumes are stored on whatever medium that backs the node such as disk, SSD, or network storage, depending on your environment. If you set theemptyDir
field toemptyDir.medium
, Kubernetes mounts a tmpfs (RAM-backed filesystem) for you instead. While tmpfs is very fast, be aware that, unlike disks, files you write count against the memory limit of the container that wrote them."Memory"
creamy-pencil-82913
05/16/2025, 9:43 PMcreamy-pencil-82913
05/16/2025, 9:44 PM