-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnextcloud-pure.yaml
73 lines (73 loc) · 1.65 KB
/
nextcloud-pure.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
62
63
64
65
66
67
68
69
70
71
72
73
apiVersion: v1
kind: Service
metadata:
name: nextcloud
labels:
app: nextcloud
spec:
type: NodePort
ports:
- port: 80
name: http
selector:
app: nextcloud
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nextcloud
spec:
replicas: 1
selector:
matchLabels:
app: nextcloud # has to match .spec.template.metadata.labels
template:
metadata:
labels:
app: nextcloud # has to match .spec.selector.matchLabels
spec:
terminationGracePeriodSeconds: 10
containers:
- name: nextcloud
image: nextcloud
env:
- name: NEXTCLOUD_ADMIN_USER
value: "admin"
- name: NEXTCLOUD_ADMIN_PASSWORD
value: "admin"
- name: NEXTCLOUD_TRUSTED_DOMAINS
value: "10.62.204.250" # Change to the IP address or domain that you will use to access NextCloud.
- name: SQLITE_DATABASE
value: "nextcloud"
ports:
- containerPort: 80
name: http
volumeMounts:
- name: nc-files
mountPath: /var/www/html/data
initContainers:
- name: install
image: busybox
command:
- sh
- '-c'
- 'chmod 770 /var/www/html/data && chown www-data /var/www/html/data'
volumeMounts:
- name: nc-files
mountPath: /var/www/html/data
volumes:
- name: nc-files
persistentVolumeClaim:
claimName: nc-files-claim
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: nc-files-claim
spec:
storageClassName: pure-file
accessModes:
- ReadWriteMany
resources:
requests:
storage: 15Ti