mariadb clean setup

This commit is contained in:
2022-10-22 13:12:26 -04:00
parent 991820939a
commit 3d038800ef
8 changed files with 117 additions and 41 deletions

View File

@@ -1,13 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: "{{apps.mariadb.namespace}}"
namespace: mariadb
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi

View File

@@ -1,17 +0,0 @@
---
# persistent volume
apiVersion: v1
kind: PersistentVolume
metadata:
name: mariadb-pv-local
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 100Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/opt/mariadb"

View File

@@ -1,17 +1,37 @@
---
# mariadb values file
secondary:
replicaCount: 0
# Bitnami chart
# https://github.com/bitnami/charts/blob/main/bitnami/mariadb/values.yaml
architecture: standalone
image:
# repository: mariadb
# tag: 10.5
registry: docker.io
repository: bitnami/mariadb
tag: 10.9
digest: ""
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: https://kubernetes.io/docs/user-guide/images/#pre-pulling-images
##
pullPolicy: IfNotPresent
## MariaDB Authentication parameters
##
auth:
rootPassword: "aifuoqibcqobcqb3"
# existingSecret: ''
#primary:
# persistence:
# existingClaim: mariadb-pv-claim
## @param auth.rootPassword Password for the `root` user. Ignored if existing secret is provided.
## ref: https://github.com/bitnami/containers/tree/main/bitnami/mariadb#setting-the-root-password-on-first-run
##
# rootPassword: ""
## @param auth.database Name for a custom database to create
## ref: https://github.com/bitnami/containers/blob/main/bitnami/mariadb/README.md#creating-a-database-on-first-run
##
database: test
## @param auth.username Name for a custom user to create
## ref: https://github.com/bitnami/containers/blob/main/bitnami/mariadb/README.md#creating-a-database-user-on-first-run
##
username: "test"
## @param auth.password Password for the new user. Ignored if existing secret is provided
##
# password: ""
## @param auth.existingSecret Use existing secret for password details (`auth.rootPassword`, `auth.password`, `auth.replicationPassword` will be ignored and picked up from this secret). The secret has to contain the keys `mariadb-root-password`, `mariadb-replication-password` and `mariadb-password`
##
existingSecret: "mariadb-secrets"