---
apiVersion: v1
kind: Service
metadata:
  name: repospawner
  namespace: repospawner
spec:
  internalTrafficPolicy: Cluster
  ports:
    - name: http
      port: 8080
      protocol: TCP
      targetPort: http
  selector:
    app: repospawner
  sessionAffinity: None
  type: ClusterIP
---
# Front-door entry Service: both HTTPRoutes target this; all traffic enters via
# oauth2-proxy.
apiVersion: v1
kind: Service
metadata:
  name: repospawner-oauth2
  namespace: repospawner
spec:
  internalTrafficPolicy: Cluster
  ports:
    - name: http
      port: 4180
      protocol: TCP
      targetPort: http
  selector:
    app: repospawner-oauth2
  sessionAffinity: None
  type: ClusterIP
