Skip to content

Commit

Permalink
cloud: add new stanza to specify custom certs for Prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
taroface committed May 18, 2021
1 parent 08322ff commit 4673b25
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cloud/kubernetes/prometheus/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@ spec:
- port: http
path: /_status/vars
tlsConfig:
# The HTTPS certs are signed by the kubernetes internal
# certificate authority.
caFile: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
# This overrides the hostname verification check for the admin
# UI port to match our quickstart secure-mode cluster setup.
ca:
secret:
key: ca.crt
# This is the secret name used by the CockroachDB Kubernetes Operator.
# When using a custom CA, replace this with your secret name
name: cockroachdb-node
serverName: "127.0.0.1"
---
# Have prometheus-operator run a replicated Prometheus cluster
Expand Down

0 comments on commit 4673b25

Please sign in to comment.