Skip to content

Minio reports TLS issue when adding a new pool : tls certificate in secret is not updated #2485

@djeanprost

Description

@djeanprost

Using operator and tenant helm chart 7.1.1, I tried to add a new pool by adding an new entry in tenant helm chart values.yml
The new pod is poped successfuly, but the two tenants fails chatting with each other because of TLS issues :
Error: grid: https://test-minio-pool-0-0.test-minio-hl.test.svc.cluster.local:9000/ re-connecting to https://test-minio-pool-1-0.test-minio-hl.test.svc.cluster.local:9000/: tls: failed to verify certificate: x509: certificate is valid for test-minio-pool-0-0.test-minio-hl.test.svc.cluster.local, minio.test.svc.cluster.local, minio.test, minio.test.svc, *., *.test.svc.cluster.local, not test-minio-pool-1-0.test-minio-hl.test.svc.cluster.local

Expected Behavior

When changing the number of pool (adding or removing), I expect the secret containing the certificates to be recreated to reflect the new alternative names of the new headless service

Current Behavior

For the moment, the secret is not updated, so to force the secret recreation, I must delete it then run the helm upgrade again.

Steps to Reproduce (for bugs)

  1. deploy a helm operator and tenant with values with one single pool
  2. wait before everything is up
  3. then add one pool. Run helm upgrade
  4. notice that the tls certificate in secret is not updated, and then there are errors in tenant pods

Your Environment

  • Version used (minio-operator): 7.1.1 (problem also occurs with 7.0.0)
  • Environment name and version (e.g. kubernetes v1.17.2): kub 1.23

Please notice that this issue is the same than #2307 from my point of view but I suspect @oghoneim managed to fix it accidentaly by running a install from scracth which does work, I can confirm.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions