add nextcloud and collabora manifests
All checks were successful
Validate Kubernetes Manifests / kubeconform (pull_request) Successful in 21s
All checks were successful
Validate Kubernetes Manifests / kubeconform (pull_request) Successful in 21s
This commit is contained in:
51
clusters/ipv6/tools/nextcloud/nextcloud-db.yml
Normal file
51
clusters/ipv6/tools/nextcloud/nextcloud-db.yml
Normal file
@@ -0,0 +1,51 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: nextcloud-db
|
||||
namespace: tools
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nextcloud-db
|
||||
serviceName: nextcloud-db
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nextcloud-db
|
||||
spec:
|
||||
containers:
|
||||
- name: nextcloud-db
|
||||
image: mariadb:12.1.2
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
env:
|
||||
- name: MYSQL_ROOT_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: nextcloud-secrets
|
||||
key: root-password
|
||||
- name: MYSQL_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: nextcloud-secrets
|
||||
key: user-password
|
||||
- name: MYSQL_DATABASE
|
||||
value: "nextcloud"
|
||||
- name: MYSQL_USER
|
||||
value: "nextcloud"
|
||||
- name: MARIADB_AUTO_UPGRADE
|
||||
value: "1"
|
||||
volumeMounts:
|
||||
- name: nextcloud-db
|
||||
mountPath: /var/lib/mysql
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: nextcloud-db
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
storageClassName: longhorn
|
||||
Reference in New Issue
Block a user