apiVersion: v1
kind: Service
metadata:
  labels:
    app: jenkins
    {{- include "jenkins-operator.metaLabels" . | nindent 4 }}
  name: jenkins
spec:
  ports:
    - name: http
      port: {{ .Values.jenkins.port }}
      protocol: TCP
      targetPort: {{ .Values.jenkins.port }}
    - name: jnlp
      port: {{ .Values.jenkins.jnlpPort }}
      protocol: TCP
      targetPort: {{ .Values.jenkins.jnlpPort }}
  selector:
    app: jenkins
  sessionAffinity: None
  type: ClusterIP
