Files
apps/nextcloud/main.yaml
2025-10-12 18:56:03 +02:00

452 lines
12 KiB
YAML

apiVersion: v1
data:
aliasgroup1: https://cloud.borninpain.de:443
extra_params: --o:ssl.enable=false --o:ssl.termination=true
kind: ConfigMap
metadata:
annotations:
confighash: config-a0251c3c8340b1da71056e3746336992
labels:
app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: collabora
app.kubernetes.io/version: 24.04.5.2.1
helm.sh/chart: collabora-1.1.20
name: nextcloud-collabora
---
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/component: app
app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: nextcloud
app.kubernetes.io/version: 32.0.0
helm.sh/chart: nextcloud-8.4.0
name: nextcloud
spec:
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 80
selector:
app.kubernetes.io/component: app
app.kubernetes.io/instance: nextcloud
app.kubernetes.io/name: nextcloud
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: collabora
app.kubernetes.io/version: 24.04.5.2.1
helm.sh/chart: collabora-1.1.20
type: main
name: nextcloud-collabora
spec:
ports:
- name: http
port: 9980
protocol: TCP
targetPort: http
selector:
app.kubernetes.io/instance: nextcloud
app.kubernetes.io/name: collabora
type: main
type: ClusterIP
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
helm.sh/resource-policy: keep
labels:
app.kubernetes.io/component: app
app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: nextcloud
app.kubernetes.io/version: 32.0.0
helm.sh/chart: nextcloud-8.4.0
name: nextcloud-nextcloud
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 25Gi
storageClassName: openebs-3-replicas
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/component: app
app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: nextcloud
app.kubernetes.io/version: 32.0.0
helm.sh/chart: nextcloud-8.4.0
name: nextcloud
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/component: app
app.kubernetes.io/instance: nextcloud
app.kubernetes.io/name: nextcloud
strategy:
type: Recreate
template:
metadata:
annotations:
hooks-hash: 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
nextcloud-config-hash: 8266a725d5474acb6adbf9f0609a3494dc3340a3ac306db90eac9ddb1b851960
php-config-hash: 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
labels:
app.kubernetes.io/component: app
app.kubernetes.io/instance: nextcloud
app.kubernetes.io/name: nextcloud
spec:
containers:
- env:
- name: POSTGRES_HOST
valueFrom:
secretKeyRef:
key: host
name: cnpg-nextcloud-cluster-app
- name: POSTGRES_DB
valueFrom:
secretKeyRef:
key: dbname
name: cnpg-nextcloud-cluster-app
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
key: user
name: cnpg-nextcloud-cluster-app
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: cnpg-nextcloud-cluster-app
- name: NEXTCLOUD_ADMIN_USER
valueFrom:
secretKeyRef:
key: nextcloud-username
name: nextcloud
- name: NEXTCLOUD_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
key: nextcloud-password
name: nextcloud
- name: NEXTCLOUD_TRUSTED_DOMAINS
value: cloud.borninpain.de
- name: NEXTCLOUD_DATA_DIR
value: /var/www/html/data
image: nextcloud:32.0.0-apache
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
httpHeaders:
- name: Host
value: cloud.borninpain.de
path: /status.php
port: 80
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
name: nextcloud
ports:
- containerPort: 80
name: http
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
httpHeaders:
- name: Host
value: cloud.borninpain.de
path: /status.php
port: 80
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
resources: {}
volumeMounts:
- mountPath: /var/www/
name: nextcloud-main
subPath: root
- mountPath: /var/www/html
name: nextcloud-main
subPath: html
- mountPath: /var/www/html/data
name: nextcloud-main
subPath: data
- mountPath: /var/www/html/config
name: nextcloud-main
subPath: config
- mountPath: /var/www/html/custom_apps
name: nextcloud-main
subPath: custom_apps
- mountPath: /var/www/tmp
name: nextcloud-main
subPath: tmp
- mountPath: /var/www/html/themes
name: nextcloud-main
subPath: themes
- command:
- /cron.sh
env:
- name: POSTGRES_HOST
valueFrom:
secretKeyRef:
key: host
name: cnpg-nextcloud-cluster-app
- name: POSTGRES_DB
valueFrom:
secretKeyRef:
key: dbname
name: cnpg-nextcloud-cluster-app
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
key: user
name: cnpg-nextcloud-cluster-app
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: cnpg-nextcloud-cluster-app
- name: NEXTCLOUD_ADMIN_USER
valueFrom:
secretKeyRef:
key: nextcloud-username
name: nextcloud
- name: NEXTCLOUD_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
key: nextcloud-password
name: nextcloud
- name: NEXTCLOUD_TRUSTED_DOMAINS
value: cloud.borninpain.de
- name: NEXTCLOUD_DATA_DIR
value: /var/www/html/data
image: nextcloud:32.0.0-apache
imagePullPolicy: IfNotPresent
name: nextcloud-cron
resources: {}
volumeMounts:
- mountPath: /var/www/
name: nextcloud-main
subPath: root
- mountPath: /var/www/html
name: nextcloud-main
subPath: html
- mountPath: /var/www/html/data
name: nextcloud-main
subPath: data
- mountPath: /var/www/html/config
name: nextcloud-main
subPath: config
- mountPath: /var/www/html/custom_apps
name: nextcloud-main
subPath: custom_apps
- mountPath: /var/www/tmp
name: nextcloud-main
subPath: tmp
- mountPath: /var/www/html/themes
name: nextcloud-main
subPath: themes
securityContext:
fsGroup: 33
volumes:
- name: nextcloud-main
persistentVolumeClaim:
claimName: nextcloud-nextcloud
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: collabora
app.kubernetes.io/version: 24.04.5.2.1
helm.sh/chart: collabora-1.1.20
name: nextcloud-collabora
spec:
minReadySeconds: 0
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: nextcloud
app.kubernetes.io/name: collabora
type: main
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
confighash: config-a0251c3c8340b1da71056e3746336992
labels:
app.kubernetes.io/instance: nextcloud
app.kubernetes.io/name: collabora
type: main
spec:
containers:
- env:
- name: username
valueFrom:
secretKeyRef:
key: colla-user
name: nextcloud
- name: password
valueFrom:
secretKeyRef:
key: colla-pass
name: nextcloud
envFrom:
- configMapRef:
name: nextcloud-collabora
image: collabora/code:24.04.5.2.1
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 4
httpGet:
path: /
port: 9980
scheme: HTTP
initialDelaySeconds: 0
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 30
name: collabora
ports:
- containerPort: 9980
name: http
protocol: TCP
readinessProbe:
failureThreshold: 2
httpGet:
path: /
port: 9980
scheme: HTTP
initialDelaySeconds: 0
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 30
resources: {}
securityContext: {}
startupProbe:
failureThreshold: 30
httpGet:
path: /
port: 9980
scheme: HTTP
periodSeconds: 3
volumeMounts:
- mountPath: /tmp
name: tmp
securityContext: {}
serviceAccountName: default
terminationGracePeriodSeconds: 60
volumes:
- emptyDir: {}
name: tmp
---
apiVersion: batch/v1
kind: Job
metadata:
annotations:
helm.sh/hook: test
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
labels:
app.kubernetes.io/component: database-ping-test
name: cnpg-nextcloud-cluster-ping-test
namespace: nextcloud
spec:
template:
metadata:
labels:
app.kubernetes.io/component: database-ping-test
name: cnpg-nextcloud-cluster-ping-test
spec:
containers:
- args:
- -c
- apk add postgresql-client && psql "postgresql://$PGUSER:$PGPASS@cnpg-nextcloud-cluster-rw.nextcloud.svc.cluster.local:5432/${PGDBNAME:-$PGUSER}"
-c 'SELECT 1'
command:
- sh
env:
- name: PGUSER
valueFrom:
secretKeyRef:
key: username
name: cnpg-nextcloud-cluster-app
- name: PGPASS
valueFrom:
secretKeyRef:
key: password
name: cnpg-nextcloud-cluster-app
- name: PGDBNAME
valueFrom:
secretKeyRef:
key: dbname
name: cnpg-nextcloud-cluster-app
optional: true
image: alpine:3.17
name: alpine
restartPolicy: Never
---
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
labels:
app.kubernetes.io/instance: cnpg-nextcloud
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: cluster
app.kubernetes.io/part-of: cloudnative-pg
helm.sh/chart: cluster-0.3.1
name: cnpg-nextcloud-cluster
namespace: nextcloud
spec:
affinity:
topologyKey: kubernetes.io/hostname
bootstrap:
initdb:
database: nextcloud
owner: nextcloud
enablePDB: true
enableSuperuserAccess: true
imageName: ghcr.io/cloudnative-pg/postgresql:17
imagePullPolicy: IfNotPresent
instances: 3
logLevel: info
monitoring:
disableDefaultQueries: false
enablePodMonitor: false
postgresGID: 26
postgresUID: 26
postgresql: null
primaryUpdateMethod: switchover
primaryUpdateStrategy: unsupervised
storage:
size: 10Gi
storageClass: openebs-hostpath
walStorage:
size: 1Gi
storageClass: openebs-hostpath