apiVersion: v1
kind: Service
metadata:
  name: jenkins
  labels:
    env: production
    tier: cicd
    app: jenkins
    name: jenkins-service
spec:
  type: NodePort
  ports:
    - port: 8080
      targetPort: 8080
      nodePort: 30006
  selector:
    env: production
    tier: cicd
    app: jenkins
    name: jenkins-pod
---
apiVersion: v1
kind: Service
metadata:
  name: jenkins-jnlp
  labels:
    env: production
    tier: cicd
    app: jenkins
    name: jenkins-jnlp-service
spec:
  type: NodePort
  ports:
    - port: 50000
      targetPort: 50000
      nodePort: 30007
  selector:
    env: production
    tier: cicd
    app: jenkins
    name: jenkins-pod