-
Notifications
You must be signed in to change notification settings - Fork 1
/
psitransfer-deployment-rwo.yaml
61 lines (60 loc) · 1.17 KB
/
psitransfer-deployment-rwo.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: psitransfer-rwo-deployment
labels:
app: psitransfer-rwo
spec:
replicas: 1
selector:
matchLabels:
app: psitransfer-rwo
template:
metadata:
labels:
app: psitransfer-rwo
spec:
containers:
- name: psitransfer-rwo-container
image: psitrax/psitransfer:latest
ports:
- containerPort: 3000
env:
- name: PSITRANSFER_ADMIN_PASS
value: "secret"
volumeMounts:
- name: psitransfer-rwo-data
mountPath: /data
securityContext:
runAsUser: 0
volumes:
- name: psitransfer-rwo-data
persistentVolumeClaim:
claimName: psitransfer-rwo-data-claim
---
apiVersion: v1
kind: Service
metadata:
name: psitransfer-rwo-service
spec:
selector:
app: psitransfer-rwo
ports:
- protocol: TCP
port: 80
targetPort: 3000
nodePort: 30080
type: NodePort
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: psitransfer-rwo-data-claim
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: rook-ceph-block