removed mariadb from hel chart, after problems with continuous deploy
This commit is contained in:
69
deploy/app/mariadb-deploy.yaml
Normal file
69
deploy/app/mariadb-deploy.yaml
Normal file
@@ -0,0 +1,69 @@
|
||||
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: nextcloud-mariadb
|
||||
namespace: cloud-limbosolutions-com
|
||||
spec:
|
||||
clusterIP: None
|
||||
selector:
|
||||
app: nextcloud-mariadb
|
||||
ports:
|
||||
- name: mysql
|
||||
port: 3306
|
||||
targetPort: 3306
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: nextcloud-mariadb
|
||||
spec:
|
||||
serviceName: nextcloud-mariadb
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nextcloud-mariadb
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nextcloud-mariadb
|
||||
spec:
|
||||
containers:
|
||||
- name: mariadb
|
||||
image: mariadb:11.4
|
||||
env:
|
||||
- name: MARIADB_ROOT_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: nextcloud-mariadb
|
||||
key: MARIADB_ROOT_PASSWORD
|
||||
- name: MARIADB_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: nextcloud-mariadb
|
||||
key: MARIADB_USER
|
||||
- name: MARIADB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: nextcloud-mariadb
|
||||
key: MARIADB_PASSWORD
|
||||
- name: MARIADB_DATABASE
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: nextcloud-mariadb
|
||||
key: MARIADB_DATABASE
|
||||
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
volumeMounts:
|
||||
- name: mariadb-data
|
||||
mountPath: /var/lib/mysql
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: mariadb-data
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
|
||||
Reference in New Issue
Block a user