ulranh / hana_sql_exporter

hana_sql_exporter - SAP Hana SQL Exporter for Prometheus
Apache License 2.0
28 stars 11 forks source link

secrets for Kubernetes deployment #4

Open sevko21 opened 3 years ago

sevko21 commented 3 years ago

Hi,

is there a way to deploy the secrets in the Kubernetes environment? There isn't a shell integrated in the container so it is hard for us to set the password over the container.

Regards

ulranh commented 3 years ago

Hi,

if you want an integrated shell, just replace the following line in the Dockerfile

# final stage
FROM scratch

with

# final stage
FROM alpine

Otherwise you can always download the current binary of the hana_sql_exporter or build it yourself.

Best regards Ulli

sevko21 commented 3 years ago

Can we also place the secret section manually in the .toml file? Best Regards Sevket

ulranh commented 3 years ago

This should be possible. However, the internal structure of the secret section must of course be preserved.

Best regards Ulli