Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
elddriver opened this issue Jun 18, 2024 · 2 comments
Open

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

elddriver opened this issue Jun 18, 2024 · 2 comments

Comments

@elddriver
Copy link

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

  • interval: 30s
    port: web
  • interval: 30s
    port: reloader-web

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
Copy link
Author

image

Copy link

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.

@github-actions github-actions bot added the stale label Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant