-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add option to enable prometheus with real certs
- Loading branch information
1 parent
325c0ba
commit 7e22db8
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
resources: | ||
- monitor.yaml | ||
|
||
# [PROMETHEUS WITH CERTMANAGER] The following patch configures the ServiceMonitor in ../prometheus | ||
# to securely reference certificates created and managed by cert-manager. | ||
# Additionally, ensure that you uncomment the [METRICS WITH CERTMANAGER] patch under config/default/kustomization.yaml | ||
# to mount the "metrics-server-cert" secret in the Manager Deployment. | ||
patches: | ||
- path: patches/monitor_tls_patch.yaml | ||
target: | ||
kind: ServiceMonitor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Patch for Prometheus ServiceMonitor to enable secure TLS configuration | ||
# using certificates managed by cert-manager | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: controller-manager-metrics-monitor | ||
namespace: system | ||
spec: | ||
endpoints: | ||
- tlsConfig: | ||
insecureSkipVerify: false | ||
ca: | ||
secret: | ||
name: olmv1-ca | ||
key: ca.crt | ||
cert: | ||
secret: | ||
name: olmv1-ca | ||
key: olm-ca.crt | ||
keySecret: | ||
name: olmv1-ca | ||
key: ca.crt |