apiVersion: v1
kind: Service
metadata:
  name: jenkins-service
  namespace: default
  annotations:
    prometheus.io/scrape: 'true'
    prometheus.io/path:   /
    prometheus.io/port:   '8080'
spec:
  selector:
    app: jenkins-server
  ports:
    - protocol: TCP
      port: 8080
      targetPort: 8080
      name: jenkins-service