apiVersion: v1 kind: Service metadata: name: service annotations: prometheus.io/path: /metrics prometheus.io/scrape: "true" prometheus.io/port: "8080" labels: app: xgboost-operator spec: type: ClusterIP selector: app: xgboost-operator ports: - port: 443