caasp-services icon indicating copy to clipboard operation
caasp-services copied to clipboard

on helm upgrade, DB secrets are regenerated and connection to mysql is lost

Open malvex opened this issue 6 years ago • 1 comments

Reproduction steps: helm install portus --name portus helm upgrade portus portus

DB secrets will get generated, but not updated in mariadb

malvex avatar May 16 '18 09:05 malvex

You need to set various passwords explicitly in your values.yaml, so that it's not regenerated.

You will need to purge the install and wipe out the MariaDB storage and re-install.

The follow passwords need to be set

portus:
   password:

mariadb:
  rootUser:
    password:
  db:
     password:

I've started using https://github.com/futuresimple/helm-secrets to encode the password values.

ArcticSnowman avatar Jul 02 '18 19:07 ArcticSnowman