Merge pull request #19 from aggarwalakshun/nextcloud

feat: add collabora deployment and services for Nextcloud integration
This commit is contained in:
aggarwalakshun
2025-04-16 05:01:16 +05:30
committed by GitHub
3 changed files with 115 additions and 0 deletions

View 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

View 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

View 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