42 lines
900 B
YAML
42 lines
900 B
YAML
---
|
|
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
|