Skip to content

Instantly share code, notes, and snippets.

@live-wire
Created May 31, 2022 10:20
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/41a74fe0a4b01783208cd77bf421df31 to your computer and use it in GitHub Desktop.
Save live-wire/41a74fe0a4b01783208cd77bf421df31 to your computer and use it in GitHub Desktop.
sample statefulset
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: ephemeral-test-statefulset
namespace: test-namespace
spec:
replicas: 600
serviceName: ephemeral-test-statefulset
podManagementPolicy: Parallel
selector:
matchLabels:
app: ephemeral-test-statefulset
template:
metadata:
labels:
app: ephemeral-test-statefulset
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
volumeClaimTemplates:
- metadata:
name: scratch-volume
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 600Gi
storageClassName: pd-ssd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment