Skip to content

Instantly share code, notes, and snippets.

@live-wire
Created May 31, 2022 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save live-wire/0720bf2b59164fec3d1d8bc9be7daa2f to your computer and use it in GitHub Desktop.
Save live-wire/0720bf2b59164fec3d1d8bc9be7daa2f to your computer and use it in GitHub Desktop.
sample deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: ephemeral-test-deployment
namespace: test-namespace
spec:
replicas: 600
selector:
matchLabels:
app: ephemeral-test-deployment
template:
metadata:
labels:
app: ephemeral-test-deployment
spec:
# schedulerName: volcano
containers:
- name: my-frontend
image: busybox:1.28
volumeMounts:
- mountPath: "/scratch"
name: scratch-volume
command: [ "sleep", "1000000" ]
resources:
limits:
memory: 96Gi
cpu: 12
volumes:
- name: scratch-volume
ephemeral:
volumeClaimTemplate:
metadata:
labels:
type: ephemeral-scratch-volume
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "pd-ssd"
resources:
requests:
storage: 600Gi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment