# How should I input the value of cert\_file/cert\_key in grafana.ini for the tls secret on k8s

**URL:** <https://community.grafana.com/t/how-should-i-input-the-value-of-cert-file-cert-key-in-grafana-ini-for-the-tls-secret-on-k8s/108086>\
**Category:** Configuration\
**Tags:** alerting\
**Created:** [November 18, 2023, 7:44am UTC](https://community.grafana.com/t/how-should-i-input-the-value-of-cert-file-cert-key-in-grafana-ini-for-the-tls-secret-on-k8s/108086 "2023-11-18T07:44:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yg1206lee](https://avatars.discourse-cdn.com/v4/letter/y/e47c2d/32.png) [@yg1206lee](https://community.grafana.com/u/yg1206lee)\
**Post date:** [November 18, 2023, 7:44am UTC](https://community.grafana.com/t/how-should-i-input-the-value-of-cert-file-cert-key-in-grafana-ini-for-the-tls-secret-on-k8s/108086/1 "2023-11-18T07:44:12Z")

</div>

Hi,

I deployed Grafana Helm Chart (v7.0.5) / AppVerion (v10.1.5) in our cluster and I created secret tls and configured ingress with url / tls in helm, and then set the alerting in grafana after deployment with customized helm chart.

However, even if ingress with tls secret is configured in helm chart, default alert message includes port number “:3000” like this… Also, View URL button is not working properly because of the port number (":3000)

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/b/2/b25f5253f70d047f8a841eb6ff23d6159505a9d5.png)

i found that there should be necessary items such as cert\_file, cert\_key and protocol in grafana.ini

I’m looking for how to set the deployed tls secret with cert\_file/key.  
How should I input the cert\_file/cert\_key value of grafana.ini for the tls secret that I already distributed to k8s?

1. Secret with TLS  
kubectl create secret tls grafana --cert \*\*.pem --key \*\*.pem -n grafana

2. grafana.ini  
[server]  
domain=test.company.co.kr  
protocal= https  
cert\_file= [secret name ??]  
cert\_key=[secret name ??]

---

<div class="post-metadata">

**Author:** ![jangaraj](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jangaraj/32/39197_2.png) [@jangaraj](https://community.grafana.com/u/jangaraj)\
**Post date:** [November 18, 2023, 2:51pm UTC](https://community.grafana.com/t/how-should-i-input-the-value-of-cert-file-cert-key-in-grafana-ini-for-the-tls-secret-on-k8s/108086/2 "2023-11-18T14:51:39Z")

</div>

Configure `root_url` option in the `[server]`section of the Grafana configuration file to match your ingress domain/protocol.

---

<div class="post-metadata">

**Author:** ![yg1206lee](https://avatars.discourse-cdn.com/v4/letter/y/e47c2d/32.png) [@yg1206lee](https://community.grafana.com/u/yg1206lee)\
**Post date:** [November 22, 2023, 2:42pm UTC](https://community.grafana.com/t/how-should-i-input-the-value-of-cert-file-cert-key-in-grafana-ini-for-the-tls-secret-on-k8s/108086/3 "2023-11-22T14:42:51Z")

</div>

@jangaraj Thanks 😄 it works fine.
