-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(go/v4,ksutomize/v2,helm/v1-alpha): Fix prometheus integration with T…
…LS check Co-Author: Abhisek Dwivedi <[email protected]>
- Loading branch information
1 parent
1c98e2c
commit 1b55b12
Showing
26 changed files
with
357 additions
and
162 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
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
37 changes: 17 additions & 20 deletions
37
docs/book/src/cronjob-tutorial/testdata/project/config/prometheus/monitor_tls_patch.yaml
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,22 +1,19 @@ | ||
# 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: metrics-server-cert | ||
key: ca.crt | ||
cert: | ||
secret: | ||
name: metrics-server-cert | ||
key: tls.crt | ||
keySecret: | ||
name: metrics-server-cert | ||
key: tls.key | ||
- 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 |
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
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
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
37 changes: 17 additions & 20 deletions
37
docs/book/src/getting-started/testdata/project/config/prometheus/monitor_tls_patch.yaml
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,22 +1,19 @@ | ||
# 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: metrics-server-cert | ||
key: ca.crt | ||
cert: | ||
secret: | ||
name: metrics-server-cert | ||
key: tls.crt | ||
keySecret: | ||
name: metrics-server-cert | ||
key: tls.key | ||
- 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 |
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
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
37 changes: 17 additions & 20 deletions
37
.../book/src/multiversion-tutorial/testdata/project/config/prometheus/monitor_tls_patch.yaml
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,22 +1,19 @@ | ||
# 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: metrics-server-cert | ||
key: ca.crt | ||
cert: | ||
secret: | ||
name: metrics-server-cert | ||
key: tls.crt | ||
keySecret: | ||
name: metrics-server-cert | ||
key: tls.key | ||
- 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 |
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
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
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
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
Oops, something went wrong.