mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 23:20:56 +01:00
20 lines
577 B
YAML
20 lines
577 B
YAML
apiVersion: k8s.mariadb.com/v1alpha1
|
|
kind: User
|
|
metadata:
|
|
name: app-demo-user
|
|
spec:
|
|
# If you want the user to be created with a different name than the resource name
|
|
# name: user-custom
|
|
mariaDbRef:
|
|
name: mariadb-repl
|
|
namespace: mariadb-operator
|
|
passwordSecretKeyRef:
|
|
name: app-demo-database-secret
|
|
key: password
|
|
maxUserConnections: 20
|
|
host: "%"
|
|
# Delete the resource in the database whenever the CR gets deleted.
|
|
# Alternatively, you can specify Skip in order to omit deletion.
|
|
cleanupPolicy: Skip
|
|
requeueInterval: 10h
|
|
retryInterval: 30s |