feat: add collabora deployment and services for Nextcloud integration
This commit is contained in:
29
cluster/apps/nextcloud/collabora.yml
Normal file
29
cluster/apps/nextcloud/collabora.yml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: collabora
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: collabora
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: collabora
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: collabora
|
||||||
|
image: collabora/code:24.04.13.3.1
|
||||||
|
ports:
|
||||||
|
- containerPort: 9980
|
||||||
|
env:
|
||||||
|
- name: aliasgroup1
|
||||||
|
value: "https://nextcloud.akshun-lab.uk"
|
||||||
|
- name: aliasgroup2
|
||||||
|
value: "https://nextcloud-int-service:9980"
|
||||||
|
securityContext:
|
||||||
|
capabilities:
|
||||||
|
add:
|
||||||
|
- MKNOD
|
||||||
45
cluster/apps/nextcloud/nextcloud-svc.yml
Normal file
45
cluster/apps/nextcloud/nextcloud-svc.yml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: nextcloud-service
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
type: NodePort
|
||||||
|
selector:
|
||||||
|
app: nextcloud
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 443
|
||||||
|
targetPort: 443
|
||||||
|
nodePort: 9200
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: collabora-service
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
type: NodePort
|
||||||
|
selector:
|
||||||
|
app: collabora
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 9980
|
||||||
|
targetPort: 9980
|
||||||
|
nodePort: 9980
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: nextcloud-int-service
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: nextcloud
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 443
|
||||||
|
targetPort: 443
|
||||||
41
cluster/apps/nextcloud/nextcloud.yml
Normal file
41
cluster/apps/nextcloud/nextcloud.yml
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: nextcloud
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: nextcloud
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: nextcloud
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nextcloud
|
||||||
|
image: lscr.io/linuxserver/nextcloud:31.0.2
|
||||||
|
ports:
|
||||||
|
- containerPort: 443
|
||||||
|
env:
|
||||||
|
- name: PGID
|
||||||
|
value: "1000"
|
||||||
|
- name: PUID
|
||||||
|
value: "1000"
|
||||||
|
- name: TZ
|
||||||
|
value: "Asia/Kolkata"
|
||||||
|
volumeMounts:
|
||||||
|
- name: nextcloud-data
|
||||||
|
mountPath: /data
|
||||||
|
- name: nextcloud-config
|
||||||
|
mountPath: /config
|
||||||
|
volumes:
|
||||||
|
- name: nextcloud-data
|
||||||
|
nfs:
|
||||||
|
path: /home/akshun/nextcloud/data
|
||||||
|
server: 10.0.0.10
|
||||||
|
- name: nextcloud-config
|
||||||
|
nfs:
|
||||||
|
path: /home/akshun/nextcloud/config
|
||||||
|
server: 10.0.0.10
|
||||||
Reference in New Issue
Block a user