prometheus-operator / kube-prometheus

Use Prometheus to monitor Kubernetes and applications running on Kubernetes
https://prometheus-operator.dev/
Apache License 2.0
6.68k stars 1.92k forks source link

I have some questions when add TLS certification to alertmanager #2448

Open elddriver opened 3 months ago

elddriver commented 3 months ago

hello guys, I want to add TLScertification to alermanager, i create cert and key with secret, but after i edited the manifest/alertmanager-alertmanager.yaml and alertmanager-serviceMonitor.yaml, it is still not working i add those to alertmanager-alertmanager.yaml:

spec: image: quay.io/prometheus/alertmanager:v0.25.0 web: tlsConfig: keySecret: key: tls.key name: alert-tls-secret cert: secret: key: tls.crt name: alert-tls-secret

and edit the alertmanager-serviceMonitor.yaml spec: endpoints: - interval: 30s port: https scheme: https tlsConfig: insecureSkipVerify: true

but when check the prometheus website, the target still watch the http endpoint of alertmanager-main,so i guess there are some format error in my edit,but i ddnt find document about this. I would appreciate it if you could teach me edit the yaml to add TLS ,or point the document about this !

env: kubernetes 1.25.7 kube-prometheus release:1.12

elddriver commented 3 months ago

image

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had any activity in the last 60 days. Thank you for your contributions.