Files
core-apps/nextcloud/deployment.yaml
2025-06-20 14:38:30 -04:00

74 lines
1.8 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: nextcloud
spec:
selector:
matchLabels:
app: nextcloud
template:
metadata:
labels:
app: nextcloud
spec:
containers:
- name: nextcloud
image: nextcloud:28.0.3-apache
envFrom:
- secretRef:
name: nextcloud-secret
env:
- name: NEXTCLOUD_TRUSTED_DOMAINS
value: nextcloud.dubyatp.xyz
volumeMounts:
- mountPath: /var/www/html
name: nextcloud-data
readOnly: false
resources:
limits:
memory: "1Gi"
cpu: "1000m"
requests:
memory: "500Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /status.php
port: 80
httpHeaders:
- name: Host
value: nextcloud.dubyatp.xyz
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 1
readinessProbe:
httpGet:
path: /status.php
port: 80
httpHeaders:
- name: Host
value: nextcloud.dubyatp.xyz
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 1
startupProbe:
httpGet:
path: /status.php
port: 80
httpHeaders:
- name: Host
value: nextcloud.dubyatp.xyz
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 30
successThreshold: 1
volumes:
- name: nextcloud-data
nfs:
server: 10.105.15.20
path: /mnt/hdd-pool/nextcloud-files