ADD: added nextcloud

This commit is contained in:
2026-02-27 20:54:54 +01:00
parent 95eb12797d
commit f0c47beaad
15 changed files with 575 additions and 1 deletions

View File

@@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nextcloud
namespace: nextcloud
spec:
replicas: 1
selector:
matchLabels:
app: nextcloud
template:
metadata:
labels:
app: nextcloud
spec:
# fsGroup sorgt dafür, dass gemountete Volumes die Gruppe www-data (33) bekommen
securityContext:
fsGroup: 33
containers:
- name: nextcloud
image: nextcloud:33-apache
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
# - name: NEXTCLOUD_ADMIN_USER
# value: admin
# - name: NEXTCLOUD_ADMIN_PASSWORD
# value: admin
- name: MYSQL_HOST
value: mariadb.nextcloud.svc.cluster.local
- name: MYSQL_DATABASE
value: nextcloud
- name: MYSQL_USER
value: nextcloud
- name: MYSQL_PASSWORD
value: "nextcloud"
- name: REDIS_HOST
value: redis.nextcloud.svc.cluster.local
- name: NEXTCLOUD_TRUSTED_DOMAINS
value: "henryathome.home64.de,192.168.178.0/24,192.168.178.138"
# resources:
# requests:
# memory: "512Mi"
# cpu: "250m"
# limits:
# memory: "1Gi"
# cpu: "1000m"
volumeMounts:
- name: data
mountPath: /var/www/html/data # angepasst auf Standard Nextcloud Datadir
volumes:
- name: data
persistentVolumeClaim:
claimName: nextcloud-data-pvc