-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextcloud-server.yml
65 lines (65 loc) · 1.37 KB
/
nextcloud-server.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: nextcloud-server
labels:
app: nextcloud
spec:
replicas: 1
selector:
matchLabels:
pod-label: nextcloud-server-prod
template:
metadata:
labels:
app: nextcloud
pod-label: nextcloud-server-prod
spec:
containers:
- name: nextcloud
image: nextcloud:stable
volumeMounts:
- name: server-storage
mountPath: /var/www/html
env:
- name: POSTGRES_DB
value: admin
- name: POSTGRES_HOST
value: nextcloud-db
- name: NEXTCLOUD_TRUSTED_DOMAINS
value: "nextcloud.streisand.ovh"
ports:
- name: http
containerPort: 80
- name: https
containerPort: 443
volumes:
- name: server-storage
persistentVolumeClaim:
claimName: nextcloud-data-claim
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nextcloud-data-claim
labels:
app: nextcloud
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 16Ti
---
apiVersion: v1
kind: Service
metadata:
name: nextcloud-nodeport
spec:
type: NodePort
ports:
- port: 80 #Port on the node network
targetPort: 80 #Port on actual containers
nodePort: 30124 #Externally exposed port
selector:
app: nextcloud #How it finds containers