All checks were successful
Validate Kubernetes Manifests / kubeconform (push) Successful in 1m3s
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: nextcloud
|
|
namespace: tools
|
|
spec:
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: nextcloud
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nextcloud
|
|
spec:
|
|
containers:
|
|
- name: nextcloud
|
|
image: lscr.io/linuxserver/nextcloud:32.0.3
|
|
readinessProbe:
|
|
exec:
|
|
command:
|
|
- sh
|
|
- -c
|
|
- nc -z nextcloud-db.tools.svc.cluster.local 3306
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
failureThreshold: 3
|
|
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
|
|
persistentVolumeClaim:
|
|
claimName: nextcloud-data-longhorn
|
|
- name: nextcloud-config
|
|
persistentVolumeClaim:
|
|
claimName: nextcloud-longhorn
|