apiVersion: v1
kind: Service
metadata:
  name: jenkins
  namespace: cicd
  labels:
    component: jenkins
spec:
  type: NodePort
  ports:
    - name: web
      port: 8080
      targetPort: 8080
      protocol: TCP
    - name: slaves
      port: 50000
      targetPort: 50000 
      protocol: TCP
  selector:
    component: jenkins
