tchiotludo / akhq

Kafka GUI for Apache Kafka to manage topics, topics data, consumers group, schema registry, connect and more...
https://akhq.io/
Apache License 2.0
3.36k stars 652 forks source link

Pass trust store file through helm #452

Closed vikesh-chauhan closed 3 years ago

vikesh-chauhan commented 3 years ago

I am downloading akhq as a subchart through helm. I have overridden all configuration but not able to pass the truststore.jks file from parent chart to akhq subchart. What is the best way to do that?

tchiotludo commented 3 years ago

What is the main charts ? In order to understand deeply ?

vikesh-chauhan commented 3 years ago

The main chart is basically a wrapper around akhq chart which overrides the values.yaml file needed for akhq. my values.yaml for main charts looks like below. What i would like to do is for akhq to use the truststore.jks file located in the main chart for akhq's ssl configuration

kafka-akhq: secrets: | akhq: connections: xyz: properties: bootstrap.servers: security.protocol: SSL ssl.truststore.location: /app/truststore.jks ssl.truststore.password: changeit ssl.keystore.location: /app/truststore.jks ssl.keystore.password: schema-registry: url: security: basic-auth:

vikesh-chauhan commented 3 years ago

I was able to achieve it using extraVolumes and extraVolumeMounts. Thanks!

vikesh-chauhan commented 3 years ago

Hi I would like to reopen the issue as volume mount did not resolve the issue.

To summarize: I am have a parent helm chart which has truststore.jks file which i would like to pass to the subchart (akhq in this case). The parent chart does not have a pod to mount the file to a volume. Is there anyway I can pass the file to subchart for akhq subchart to use for truststore config