-
Notifications
You must be signed in to change notification settings - Fork 1
/
ocs.yaml
55 lines (55 loc) · 1.11 KB
/
ocs.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
### ocs-init.yaml
###
### Claim a persistent disk, change owner to otp,
### initialize db, run ocs as deployment..
###
kind: Deployment
apiVersion: apps/v1
metadata:
name: ocs
labels:
app.kubernetes.io/name: ocs
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: ocs
template:
metadata:
labels:
app.kubernetes.io/name
spec:
initContainers:
- name: ocs-chown
image: sigscale/ocs
stdin: true
tty: true
securityContext:
runAsUser: 0
command:
- chown
- otp:otp
- db
volumeMounts:
- mountPath: /home/otp/db
name: db
- name: ocs-install
image: sigscale/ocs
command:
- sh
- bin/initialize
volumeMounts:
- mountPath: /home/otp/db
name: db
containers:
- name: ocs
image: sigscale/ocs
stdin: true
tty: true
volumeMounts:
- mountPath: /home/otp/db
name: db
volumes:
- name: db
persistentVolumeClaim:
claimName: ocs-data