-
Notifications
You must be signed in to change notification settings - Fork 1
/
scratch-space.yaml
42 lines (42 loc) · 1007 Bytes
/
scratch-space.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
apiVersion: apps/v1
kind: Deployment
metadata:
name: scratchspace
spec:
replicas: 2 # Modify to increase number of collaborators
selector:
matchLabels:
app: scratchdepl
template:
metadata:
labels:
app: scratchdepl
spec:
volumes:
- name: scratchvol
persistentVolumeClaim:
claimName: scratchspace-claim # matches PVC name below
containers:
- name: myshell
image: ubuntu:latest
command: ["tail"] # Trick for creating a pod that does nothing
args: ["-f", "/dev/null"]
volumeMounts:
- name: scratchvol
mountPath: /scratch # Where the shared workspace lives.
resources:
requests:
memory: "8G"
cpu: "4"
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: scratchspace-claim
spec:
storageClassName: pure-file # Use a filesystem to back volume
accessModes:
- ReadWriteMany
resources:
requests:
storage: 5Ti