Init kubebuilder with ressource and controller
This commit is contained in:
2
config/prometheus/kustomization.yaml
Normal file
2
config/prometheus/kustomization.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
resources:
|
||||
- monitor.yaml
|
||||
18
config/prometheus/monitor.yaml
Normal file
18
config/prometheus/monitor.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
# Prometheus Monitor Service (Metrics)
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
labels:
|
||||
control-plane: controller-manager
|
||||
app.kubernetes.io/name: operator-test
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
name: controller-manager-metrics-monitor
|
||||
namespace: system
|
||||
spec:
|
||||
endpoints:
|
||||
- path: /metrics
|
||||
port: http # Ensure this is the name of the port that exposes HTTP metrics
|
||||
scheme: http
|
||||
selector:
|
||||
matchLabels:
|
||||
control-plane: controller-manager
|
||||
Reference in New Issue
Block a user