adding values to helmrelease to specify image name
This commit is contained in:
parent
06b508fc59
commit
ded7421159
|
|
@ -5,27 +5,21 @@ metadata:
|
|||
namespace: mariadb-operator-system
|
||||
spec:
|
||||
replicas: 3
|
||||
|
||||
replication:
|
||||
enabled: true
|
||||
# primary:
|
||||
#automaticFailover: true
|
||||
|
||||
rootPasswordSecretKeyRef:
|
||||
name: mariadb-secrets
|
||||
key: password
|
||||
|
||||
storage:
|
||||
size: 20Gi
|
||||
|
||||
# Optional but recommended
|
||||
service:
|
||||
type: ClusterIP
|
||||
|
||||
# Helps with stable operation in GitOps
|
||||
updateStrategy:
|
||||
type: ReplicasFirstPrimaryLast
|
||||
|
||||
# Basic resource safety
|
||||
resources:
|
||||
requests:
|
||||
|
|
|
|||
|
|
@ -14,3 +14,7 @@ spec:
|
|||
kind: HelmRepository
|
||||
name: mariadb-operator
|
||||
namespace: flux-system
|
||||
valuesFrom:
|
||||
- kind: ConfigMap
|
||||
name: mariadb-operator-values
|
||||
valuesKey: values.yaml
|
||||
|
|
|
|||
|
|
@ -6,3 +6,13 @@ resources:
|
|||
- crds
|
||||
- cluster
|
||||
- mariadb-clustersecrets.yaml
|
||||
|
||||
namespace: mariadb-operator-system
|
||||
|
||||
configMapGenerator:
|
||||
- name: mariadb-operator-values
|
||||
files:
|
||||
- values.yaml
|
||||
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
|
|
|
|||
3
infrastructure/databases/mariadb-operator/values.yaml
Normal file
3
infrastructure/databases/mariadb-operator/values.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
image:
|
||||
repository: docker-registry3.mariadb.com/mariadb-operator/mariadb-operator
|
||||
pullPolicy: IfNotPresent
|
||||
Loading…
Reference in a new issue