Files
Cluster/nextcloud/deployment.yaml
T

36 lines
864 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: nextcloud-deployment
labels:
app: nextcloud
spec:
replicas: 1
selector:
matchLabels:
app: nextcloud
template:
metadata:
labels:
app: nextcloud
spec:
containers:
- name: nextcloud
image: nextcloud:35.0.2
# image: nextcloud:34.0.3
# image: nextcloud:33.0.3
ports:
- containerPort: 80
envFrom:
- secretRef:
name: nextcloud-secret
- configMapRef:
name: nextcloud-configmap
volumeMounts:
- name: nextcloud-volume
mountPath: /var/www/html
volumes:
- name: nextcloud-volume
hostPath:
path: /root/kubernetes/nextcloud/data/mount/html