opensearch-project / helm-charts

:wheel_of_dharma: A community repository for Helm Charts of OpenSearch Project.
https://opensearch.org/docs/latest/opensearch/install/helm/
Apache License 2.0
170 stars 228 forks source link

How to add s3 access and secret key to helm charts without customize the image. #469

Open ganilmca opened 1 year ago

ganilmca commented 1 year ago

Hi Team,

We were trying to add s3 access and secret key in helm charts, but it's not working. If we customize the image then its working fine, but we have many customers so we need to add these creds to helm charts. If we customize the image then the same will not use with another customer.

As of now we tried to add s3 access and secret keys in below ways.

  1. To add with environment variables.
  2. To add with secrets
  3. To add with life cycle.

If anyone done this can you please suggest us how to do it.

NOTE: Here we are using opensearch-2.9.0 version

Thanks, Anil

smlx commented 1 year ago

You need to add the s3.client.default.access_key and s3.client.default.secret_key in the keystore as described here. Add the values to a secret, and list the secret in the chart values here, which will load the values into the keystore when the container starts.

ganilmca commented 1 year ago

Hi @smlx ,

We want to add these s3.client.default.access_key and s3.client.default.secret_key at the time of container will start, but we couldn't do that. We tried to add these keys in initcontainer, but its not taking and also we have created the secret keys and added to in helm charts that time it was not working. Is there any way to add it please let us know with step by step procedure.

Thanks Anil

prudhvigodithi commented 11 months ago

[Untriage] Adding @tranngocsongtruc @SkollRyu @premkirank can you please take a look?

ztripez commented 6 months ago

We have the same issue, to add the keys to image is a big no. We can't rebuild the image each time we need change the key.