This repository has been archived on 2025-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
operator/config/prometheus/monitor_tls_patch.yaml
Andy Kolibri Vendetti a20725c7e9
All checks were successful
Lint / Run on Ubuntu (push) Successful in 2m8s
Tests / Run on Ubuntu (push) Successful in 55s
first commit
2025-04-28 21:04:13 +05:00

20 lines
553 B
YAML

# Patch for Prometheus ServiceMonitor to enable secure TLS configuration
# using certificates managed by cert-manager
- op: replace
path: /spec/endpoints/0/tlsConfig
value:
# SERVICE_NAME and SERVICE_NAMESPACE will be substituted by kustomize
serverName: SERVICE_NAME.SERVICE_NAMESPACE.svc
insecureSkipVerify: false
ca:
secret:
name: metrics-server-cert
key: ca.crt
cert:
secret:
name: metrics-server-cert
key: tls.crt
keySecret:
name: metrics-server-cert
key: tls.key