1
0
Fork 0
home-stack-kustomize/kustomize/bases/nextcloud/nextcloud-deployment.yaml

79 lines
1.7 KiB
YAML
Raw Normal View History

2020-05-02 01:55:34 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
2020-05-18 20:18:39 +00:00
name: nextcloud
2020-05-02 01:55:34 +00:00
labels:
app: nextcloud
spec:
selector:
matchLabels:
app: nextcloud
template:
metadata:
labels:
app: nextcloud
spec:
containers:
- name: nextcloud
image: nextcloud:18.0.4
env:
- name: TRUSTED_PROXIES
value: 10.0.0.0/8
- name: MYSQL_HOST
2020-08-11 04:37:20 +00:00
valueFrom:
secretKeyRef:
name: mariadb-credentials-secret
key: host
2020-05-02 01:55:34 +00:00
- name: MYSQL_DATABASE
valueFrom:
secretKeyRef:
name: mariadb-credentials-secret
key: database
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: mariadb-credentials-secret
key: username
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: mariadb-credentials-secret
key: password
ports:
- name: http
containerPort: 80
volumeMounts:
- name: nextcloud-pvc
mountPath: /var/www/html
volumes:
- name: nextcloud-pvc
persistentVolumeClaim:
claimName: nextcloud-pvc
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nextcloud-pvc
labels:
app: nextcloud
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
2020-05-17 18:20:29 +00:00
storage: 50Gi
2020-05-02 01:55:34 +00:00
---
apiVersion: v1
kind: Service
metadata:
name: nextcloud
labels:
app: nextcloud
spec:
selector:
app: nextcloud
ports:
- name: http
protocol: TCP
port: 80
2020-08-02 03:40:27 +00:00
targetPort: http