41 lines
1,014 B
YAML
41 lines
1,014 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: nextcloud
|
|
namespace: nextcloud
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: nextcloud
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nextcloud
|
|
spec:
|
|
containers:
|
|
- name: nextcloud
|
|
image: nextcloud:32
|
|
env:
|
|
- name: MYSQL_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: nextcloud-db-secret
|
|
key: MYSQL_PASSWORD
|
|
- name: MYSQL_DATABASE
|
|
value: nextcloud
|
|
- name: MYSQL_USER
|
|
value: szymi
|
|
- name: MYSQL_HOST
|
|
value: mariadb-nextcloud
|
|
- name: OVERWRITEPROTOCOL
|
|
value: https
|
|
ports:
|
|
- containerPort: 80
|
|
volumeMounts:
|
|
- name: nextcloud-data
|
|
mountPath: /var/www/html
|
|
volumes:
|
|
- name: nextcloud-data
|
|
persistentVolumeClaim:
|
|
claimName: nextcloud-pvc
|