Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: kueue
control-plane: controller-manager
app: metrics-service
name: kueue-controller-manager-metrics-service
namespace: openshift-kueue-operator
spec:
Expand Down
4 changes: 2 additions & 2 deletions pkg/operator/target_config_reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1398,14 +1398,14 @@ func (c *TargetConfigReconciler) manageServiceMonitor(ctx context.Context, kueue
Spec: monitoringv1.ServiceMonitorSpec{
Selector: metav1.LabelSelector{
MatchLabels: map[string]string{
"control-plane": "controller-manager",
"app": "metrics-service",
},
},
Endpoints: []monitoringv1.Endpoint{
{
Interval: "30s",
Path: "/metrics",
Port: "metrics", // Name of the port you want to monitor
Port: "https", // Name of the port you want to monitor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may break our network policies actually.

@tkashem made this change as part of ec72771

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, actually that PR had updated the port name in both places, later it was revoked partially during this change and I guess that introduced this problem.
I will update the fix.

Scheme: "https",
BearerTokenFile: "/var/run/secrets/kubernetes.io/serviceaccount/token",
TLSConfig: &monitoringv1.TLSConfig{
Expand Down