docker-itop icon indicating copy to clipboard operation
docker-itop copied to clipboard

make support for mysql dependencies

Open torsteinelv opened this issue 1 year ago • 2 comments

Just example,

add to chart:

dependencies:
  - name: mysql
    version: 9.10.0 
    repository: https://charts.bitnami.com/bitnami

add to values:

mysql:
  enabled: true
  auth:
    rootPassword: your-root-password
    database: itop
    username: itop
    password: your-password
  primary:
    persistence:
      enabled: true
      size: 10Gi

add to templates/deployment.yaml:

env:
  - name: DB_HOST
    value: {{ .Release.Name }}-mysql
  - name: DB_USER
    valueFrom:
      secretKeyRef:
        name: {{ .Release.Name }}-mysql
        key: username
  - name: DB_PASSWORD
    valueFrom:
      secretKeyRef:
        name: {{ .Release.Name }}-mysql
        key: password
  - name: DB_NAME
    value: itop

torsteinelv avatar Nov 26 '24 07:11 torsteinelv

Good idea, however since Combodo recommends to use MariaDB over MySQL, I would add that as dependency instead. And preferable also the official MariaDB container. PRs are welcome.

Hipska avatar Nov 26 '24 08:11 Hipska

Not sure how to create an pr on this.

we can change to chart.yaml

dependencies:
  - name: mariadb
    version: ~18.2.4
    repository: https://charts.bitnami.com/bitnami
    condition: mysql.enabled


values:
mysql:
  enabled: true
  auth:
    rootPassword: itop
    database: itop
    username: itop
    password: itop
  primary:
    persistence:
      enabled: true
      size: 10Gi

torsteinelv avatar Nov 26 '24 08:11 torsteinelv