---
apiVersion: v1
kind: Service
metadata:
  name: logviewer
  namespace: logging
spec:
  internalTrafficPolicy: Cluster
  ports:
    - name: http
      port: 8080
      protocol: TCP
      targetPort: http
  selector:
    app: logviewer
  sessionAffinity: None
  type: ClusterIP
---
# Front-door entry Service: the HTTPRoute for logviewer.unkin.net targets this;
# all traffic enters via oauth2-proxy.
apiVersion: v1
kind: Service
metadata:
  name: logviewer-oauth2
  namespace: logging
spec:
  internalTrafficPolicy: Cluster
  ports:
    - name: http
      port: 80
      protocol: TCP
      targetPort: http
  selector:
    app: logviewer-oauth2
  sessionAffinity: None
  type: ClusterIP
