apiVersion: v1
kind: Service
metadata:
  labels:
    name: jenkins-agent-service
  name: jenkins-agent
  namespace: default
spec:
  ports:
  - name: slavelistener
    port: 50000
    protocol: TCP
    targetPort: 50000
  selector:
    app: jenkins
  sessionAffinity: None
  type: ClusterIP
