apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: keycloak spec: endpoints: - port: management scheme: https tlsConfig: ca: secret: name: keycloak-frontend key: ca.crt serverName: keycloak.keycloak.svc.cluster.local selector: matchLabels: app: keycloak